summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/system.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c
index acd86761d..59f5cc9c6 100644
--- a/libc/stdlib/system.c
+++ b/libc/stdlib/system.c
@@ -126,9 +126,10 @@ do_system (const char *line)
struct sigaction sa;
sigset_t omask;
+ memset(&sa, 0, sizeof(sa));
sa.sa_handler = SIG_IGN;
- sa.sa_flags = 0;
- __sigemptyset (&sa.sa_mask);
+ /*sa.sa_flags = 0; - done by memset */
+ /*__sigemptyset (&sa.sa_mask); - done by memset */
DO_LOCK ();
if (ADD_REF () == 0)