diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2018-09-19 15:14:36 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2018-09-19 15:14:36 +0000 |
commit | 13606672d65cafe491f76e2b77fbdec1f5b98c53 (patch) | |
tree | 42db0bf975cf41429486b343f436177081cfde93 /bin/csh | |
parent | c1354a1ba1441e6bde26b6f6ce4a48dc64af315c (diff) |
Compare against NULL, not '\0' for pointers. Quiets a warning on
newer gcc.
Diffstat (limited to 'bin/csh')
-rw-r--r-- | bin/csh/lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/lex.c b/bin/csh/lex.c index bcad8d7bb32..0f2cc2355a0 100644 --- a/bin/csh/lex.c +++ b/bin/csh/lex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lex.c,v 1.27 2018/09/18 06:56:09 deraadt Exp $ */ +/* $OpenBSD: lex.c,v 1.28 2018/09/19 15:14:35 millert Exp $ */ /* $NetBSD: lex.c,v 1.9 1995/09/27 00:38:46 jtc Exp $ */ /*- @@ -1274,7 +1274,7 @@ top: aret = F_SEEK; if (alvecp) { aret = A_SEEK; - if ((c = *alvecp++) != '\0') + if ((c = *alvecp++) != NULL) return (c); if (alvec && *alvec) { alvecp = *alvec++; @@ -1310,7 +1310,7 @@ top: doneinp = 1; reset(); } - if ((evalp = *evalvec) != '\0') { + if ((evalp = *evalvec) != NULL) { evalvec++; goto top; } |