summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-07-25 17:29:40 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-07-25 17:29:40 +0000
commit1b2cf8618227164bdb2fee5b36d1d3313d85b1e7 (patch)
tree4653b9994f0f7f63e483c803eff2b99d0bd8a47e /cmd-string.c
parentba597da72e8a548403f2a86cbe864f6f8c087397 (diff)
== 0 not == NULL
Diffstat (limited to 'cmd-string.c')
-rw-r--r--cmd-string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-string.c b/cmd-string.c
index d50a4b26..6d72b2b5 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-string.c,v 1.4 2008-07-25 17:20:40 nicm Exp $ */
+/* $Id: cmd-string.c,v 1.5 2008-07-25 17:29:40 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -63,7 +63,7 @@ cmd_string_parse(const char *s, struct cmd **cmd, char **cause)
if ((t = strchr(s, ' ')) == NULL && (t = strchr(s, '\t')) == NULL)
t = strchr(s, '\0');
if ((u = strchr(s, '=')) != NULL && u < t) {
- if (putenv(s) != NULL) {
+ if (putenv(s) != 0) {
xasprintf(cause, "assignment failed: %s", s);
return (-1);
}