summaryrefslogtreecommitdiff
path: root/usr.bin/cap_mkdb
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-05-07 03:53:47 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-05-07 03:53:47 +0000
commita4a23773c9a1f80c228da850742525c80c473192 (patch)
tree0ed4be74d5f5eb4c81ada1f0213f0a335d84ad05 /usr.bin/cap_mkdb
parentf8a2c8e9293bcb03dc62894364a189ae2a5aaeca (diff)
Compare chars with '\0', not NULL.
Diffstat (limited to 'usr.bin/cap_mkdb')
-rw-r--r--usr.bin/cap_mkdb/getinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cap_mkdb/getinfo.c b/usr.bin/cap_mkdb/getinfo.c
index f50d1488334..89fb42b64d1 100644
--- a/usr.bin/cap_mkdb/getinfo.c
+++ b/usr.bin/cap_mkdb/getinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getinfo.c,v 1.12 2007/05/07 02:23:13 ray Exp $ */
+/* $OpenBSD: getinfo.c,v 1.13 2007/05/07 03:53:46 ray Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -30,7 +30,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: getinfo.c,v 1.12 2007/05/07 02:23:13 ray Exp $";
+static char rcsid[] = "$OpenBSD: getinfo.c,v 1.13 2007/05/07 03:53:46 ray Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -606,7 +606,7 @@ igetnext(char **bp, char **db_array)
}
}
rp = buf;
- for(cp = nbuf; *cp != NULL; cp++)
+ for(cp = nbuf; *cp != '\0'; cp++)
if (*cp == '|' || *cp == ',')
break;
else