diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-02-18 20:17:21 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-02-18 20:17:21 +0000 |
commit | 67c1912be1d5d649e99b526176f3a03640715045 (patch) | |
tree | 7a1d32bd71ead57762a39e143792b6aeea3f9038 | |
parent | f0715e9df24f6e02072eff3a198414931d5ffcf0 (diff) |
NULL vs '\0'
-rw-r--r-- | usr.sbin/cron/env.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/env.c b/usr.sbin/cron/env.c index 69b59f419d8..48d0b8ffe56 100644 --- a/usr.sbin/cron/env.c +++ b/usr.sbin/cron/env.c @@ -1,4 +1,4 @@ -/* $OpenBSD: env.c,v 1.8 2001/02/18 19:48:34 millert Exp $ */ +/* $OpenBSD: env.c,v 1.9 2001/02/18 20:17:20 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved */ @@ -21,7 +21,7 @@ */ #if !defined(lint) && !defined(LINT) -static char rcsid[] = "$OpenBSD: env.c,v 1.8 2001/02/18 19:48:34 millert Exp $"; +static char rcsid[] = "$OpenBSD: env.c,v 1.9 2001/02/18 20:17:20 millert Exp $"; #endif @@ -196,7 +196,7 @@ env_get(name, envp) int len = strlen(name); char *p, *q; - while ((p = *envp++) != '\0') { + while ((p = *envp++) != NULL) { if (!(q = strchr(p, '='))) continue; if ((q - p) == len && !strncmp(p, name, len)) |