aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmdline.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-25 21:47:01 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-25 21:47:01 +0200
commiteb73691402a015ba7989e91be69e591bf1540aa4 (patch)
tree63611f334e850f18f76f72d13f7d9ef0e465916f /src/cmdline.c
parentbus_read invokes callback with null message to notify that it is listening on the bus (diff)
downloadbus-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 'src/cmdline.c')
-rw-r--r--src/cmdline.c2
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);