diff options
author | bde <bde@FreeBSD.org> | 2004-03-11 11:58:16 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2004-03-11 11:58:16 +0000 |
commit | 0016f83af98e16cda533c5adf275ca76c3ac2362 (patch) | |
tree | 873c65073bc4a50436133a5678acbe7ad4856ddc /usr.sbin/sade/variable.c | |
parent | be31ea68bb3288af5b81dbc34787a3377ee2ef03 (diff) | |
download | FreeBSD-src-0016f83af98e16cda533c5adf275ca76c3ac2362.zip FreeBSD-src-0016f83af98e16cda533c5adf275ca76c3ac2362.tar.gz |
Fixed assorted misuses of NULL in integer context.
Diffstat (limited to 'usr.sbin/sade/variable.c')
-rw-r--r-- | usr.sbin/sade/variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sade/variable.c b/usr.sbin/sade/variable.c index e132862..e86104f 100644 --- a/usr.sbin/sade/variable.c +++ b/usr.sbin/sade/variable.c @@ -205,7 +205,7 @@ variable_check2(char *data) *cp3 = '\0'; cp2 = variable_get(tmp); if (cp2 != NULL) { - if (*cp == NULL) + if (*cp == '\0') return 2; else return strcmp(cp, cp2) == 0 ? 1 : 0; |