From eb73691402a015ba7989e91be69e591bf1540aa4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 25 Apr 2015 21:47:01 +0200 Subject: parentheses around assignment used as truth value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2