From 67b23376fb72cdc3fbef37837f6fb5ebe8f0f034 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 21 Mar 2016 12:10:20 -0300 Subject: posix: Fix posix_spawn implict check style This patch fixes the implicit check style add in 2a69f853c for the general convention one. Checked on x86_64. * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks style. --- sysdeps/unix/sysv/linux/spawni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/spawni.c index cb80cea..ee05de5 100644 --- a/sysdeps/unix/sysv/linux/spawni.c +++ b/sysdeps/unix/sysv/linux/spawni.c @@ -381,7 +381,7 @@ __spawnix (pid_t * pid, const char *file, close_not_cancel (args.pipe[0]); - if (!ec && pid) + if ((ec == 0) && (pid != NULL)) *pid = new_pid; __sigprocmask (SIG_SETMASK, &args.oldmask, 0); -- cgit v1.1