about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/wait4.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/wait4.c')
-rw-r--r--sysdeps/mach/hurd/wait4.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/wait4.c b/sysdeps/mach/hurd/wait4.c
index 83eba88e6d..9dfbc550bf 100644
--- a/sysdeps/mach/hurd/wait4.c
+++ b/sysdeps/mach/hurd/wait4.c
@@ -31,8 +31,10 @@ __wait4 (pid_t pid, __WAIT_STATUS_DEFN stat_loc,
   error_t err;
   struct rusage ignored;
   natural_t sigcode;
-
-  err = __USEPORT (PROC, __proc_wait (port, pid, options, stat_loc, &sigcode,
+  int dummy;
+  
+  err = __USEPORT (PROC, __proc_wait (port, pid, options, 
+				      stat_loc ?: &dummy, &sigcode,
 				      usage ?: &ignored, &dead));
 
   return err ? (pid_t) __hurd_fail (err) : dead;