summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
authornicm <nicm>2008-07-25 17:29:40 (GMT)
committer nicm <nicm>2008-07-25 17:29:40 (GMT)
commit322c184b5bb6f50a9ddc5433c6d5d6c9c91ca328 (patch) (side-by-side diff)
tree2c34b63b022c4876f1b44998c2e62663b6f47fe4 /cmd-string.c
parent115dde6bffecba3ed8d0f17cf238bc19f933fd38 (diff)
downloadtmux-old-322c184b5bb6f50a9ddc5433c6d5d6c9c91ca328.zip
tmux-old-322c184b5bb6f50a9ddc5433c6d5d6c9c91ca328.tar.gz
tmux-old-322c184b5bb6f50a9ddc5433c6d5d6c9c91ca328.tar.bz2
== 0 not == NULL
Diffstat (limited to 'cmd-string.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-string.c b/cmd-string.c
index 8c82ba0..5e2f8d3 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -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);
}