]> sourceware.org Git - glibc.git/commitdiff
posix: Fix posix_spawn implict check style
authorAdhemerval Zanella <adhemerval.zanella@linaro.com>
Mon, 21 Mar 2016 15:10:20 +0000 (12:10 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.com>
Mon, 21 Mar 2016 15:12:26 +0000 (12:12 -0300)
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.

ChangeLog
sysdeps/unix/sysv/linux/spawni.c

index f662d9aef7fdcae0db0dac8aa88b1c1096ed9c23..ffaf973d141aa585669629784e1d939e7af67f57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
+       style.
+
 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/unix/sysv/linux/x86_64/cancellation.S
index cb80cea00fcd958c743dd2555a318c48cabff62d..ee05de5a9bf0583378938a09afa686a684861da9 100644 (file)
@@ -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);
This page took 0.196401 seconds and 5 git commands to generate.