summaryrefslogtreecommitdiff
path: root/bin/csh/lex.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2018-09-19 15:14:36 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2018-09-19 15:14:36 +0000
commit13606672d65cafe491f76e2b77fbdec1f5b98c53 (patch)
tree42db0bf975cf41429486b343f436177081cfde93 /bin/csh/lex.c
parentc1354a1ba1441e6bde26b6f6ce4a48dc64af315c (diff)
Compare against NULL, not '\0' for pointers. Quiets a warning on
newer gcc.
Diffstat (limited to 'bin/csh/lex.c')
-rw-r--r--bin/csh/lex.c6
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;
}