From 6c7df39feeaeebeca88562e575aa0c803559b0d7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Sep 2012 15:23:01 +0200 Subject: s3: in sys_popen(), untangle function call from result check --- source3/lib/system.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/lib/system.c') diff --git a/source3/lib/system.c b/source3/lib/system.c index 9460330537..58f7b478ad 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -1188,8 +1188,10 @@ int sys_popen(const char *command) * Extract the command and args into a NULL terminated array. */ - if(!(argl = extract_args(NULL, command))) + argl = extract_args(NULL, command); + if (argl == NULL) { goto err_exit; + } entry->child_pid = fork(); -- cgit