git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d4fe78
)
s3: in sys_popen(), untangle function call from result check
author
Michael Adam
<obnox@samba.org>
Tue, 4 Sep 2012 13:23:01 +0000
(15:23 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 4 Sep 2012 18:39:20 +0000
(20:39 +0200)
source3/lib/system.c
patch
|
blob
|
history
diff --git
a/source3/lib/system.c
b/source3/lib/system.c
index 94603305370a96bb98e8520a975ddadbe6ffeb6a..58f7b478ad4e4e1f90d0065443af11b3e838afe6 100644
(file)
--- 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();