about summary refs log tree commit diff
path: root/malloc/tst-mallocfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/tst-mallocfork.c')
-rw-r--r--malloc/tst-mallocfork.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/malloc/tst-mallocfork.c b/malloc/tst-mallocfork.c
index abbc9d83b6..f90ce94887 100644
--- a/malloc/tst-mallocfork.c
+++ b/malloc/tst-mallocfork.c
@@ -22,9 +22,8 @@ do_test (void)
 {
   pid_t parent = getpid ();
 
-  struct sigaction action;
+  struct sigaction action = { .sa_handler = sig_handler };
   sigemptyset (&action.sa_mask);
-  action.sa_handler = sig_handler;
 
   malloc (sizeof (int));