diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-25 21:47:01 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-25 21:47:01 +0200 |
commit | eb73691402a015ba7989e91be69e591bf1540aa4 (patch) | |
tree | 63611f334e850f18f76f72d13f7d9ef0e465916f /src/cmdline.c | |
parent | bus_read invokes callback with null message to notify that it is listening on the bus (diff) | |
download | bus-eb73691402a015ba7989e91be69e591bf1540aa4.tar.gz bus-eb73691402a015ba7989e91be69e591bf1540aa4.tar.bz2 bus-eb73691402a015ba7989e91be69e591bf1540aa4.tar.xz |
parentheses around assignment used as truth value
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/cmdline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmdline.c b/src/cmdline.c index f9505cc..d6df97a 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -85,7 +85,7 @@ spawn_break(const char *message, void *user_data) pid_t pid; if (!message) return 1; - if (pid = fork()) + if ((pid = fork())) return pid == -1 ? -1 : 0; setenv("arg", message, 1); execlp("sh", "sh", "-c", command, NULL); |