summaryrefslogtreecommitdiffstats
path: root/text-utils/more.c
diff options
context:
space:
mode:
authorSami Kerola2013-01-30 21:33:23 +0100
committerKarel Zak2013-02-06 11:51:15 +0100
commitf8bd089b1da79ce0cd4f228e371aa2089561eaa5 (patch)
treeb88fa2ac1da14cf1c367654c4d3ede101389b7ff /text-utils/more.c
parenttextual: fix two misencodings in comments (diff)
downloadkernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.tar.gz
kernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.tar.xz
kernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.zip
a pointer should not be compared to zero [coccinelle]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/more.c')
-rw-r--r--text-utils/more.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text-utils/more.c b/text-utils/more.c
index 2ebdd75ef..496b1168f 100644
--- a/text-utils/more.c
+++ b/text-utils/more.c
@@ -1785,7 +1785,7 @@ void initterm(void)
}
}
#endif /* do_SIGTTOU */
- if ((term = getenv("TERM")) == 0) {
+ if ((term = getenv("TERM")) == NULL) {
dumb++;
ul_opt = 0;
}
@@ -1856,7 +1856,7 @@ void initterm(void)
if ((padstr = my_tgetstr(TERM_PAD_CHAR)) != NULL)
PC = *padstr;
Home = my_tgetstr(TERM_HOME);
- if (Home == 0 || *Home == '\0') {
+ if (Home == NULL || *Home == '\0') {
if ((cursorm =
my_tgetstr(TERM_CURSOR_ADDRESS)) != NULL) {
const char *t =