diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/system.c | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |