From: millert Date: Wed, 19 Sep 2018 15:14:35 +0000 (+0000) Subject: Compare against NULL, not '\0' for pointers. Quiets a warning on X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bdb0dae40883d5ece068eedacc14aec0faed5dff;p=openbsd Compare against NULL, not '\0' for pointers. Quiets a warning on newer gcc. --- 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; }