summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-07-17 10:54:47 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-07-17 10:54:47 +0000
commit3c0cfe000429687b498d64a42858f25abe81becb (patch)
tree794589b739ec3664bf002aa5589420e0645437bf
parent9eab1228a6a13e7e14b58bca5b08ed3ce80d4118 (diff)
comment snicky usage of strchr
-rw-r--r--usr.bin/make/cond.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/cond.c b/usr.bin/make/cond.c
index 450fc024d26..8cdb50eed8c 100644
--- a/usr.bin/make/cond.c
+++ b/usr.bin/make/cond.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: cond.c,v 1.34 2007/07/08 17:44:20 espie Exp $ */
+/* $OpenBSD: cond.c,v 1.35 2007/07/17 10:54:46 espie Exp $ */
/* $NetBSD: cond.c,v 1.7 1996/11/06 17:59:02 christos Exp $ */
/*
@@ -171,6 +171,7 @@ static const char *
find_cond(const char *p)
{
for (;;p++) {
+ /* XXX: when *p == '\0', strchr() returns !NULL */
if (strchr(" \t)&|$", *p) != NULL)
return p;
}