From bd7b22b2eb8f6ab2452316f5e2a182a0b21be4ee Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 6 Dec 2005 00:50:15 +0000 Subject: * malloc/tst-mallocfork.c (do_test): Make sure sa_flags is initialized. Reported by John Reiser . --- malloc/tst-mallocfork.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'malloc') 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)); -- cgit v1.2.3