aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);