summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sade/variable.c')
-rw-r--r--usr.sbin/sade/variable.c2
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;
OpenPOWER on IntegriCloud