summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-12-06 00:50:15 +0000
committerRoland McGrath <roland@gnu.org>2005-12-06 00:50:15 +0000
commitbd7b22b2eb8f6ab2452316f5e2a182a0b21be4ee (patch)
tree41c08dd73a2c809a7ac3c69176655f694693904f /malloc
parentf30070ae4efe2652fddb8163f83229fb26caa791 (diff)
downloadglibc-bd7b22b2eb8f6ab2452316f5e2a182a0b21be4ee.tar.gz
glibc-bd7b22b2eb8f6ab2452316f5e2a182a0b21be4ee.tar.xz
glibc-bd7b22b2eb8f6ab2452316f5e2a182a0b21be4ee.zip
* malloc/tst-mallocfork.c (do_test): Make sure sa_flags is
	initialized.  Reported by John Reiser <jreiser@BitWagon.com>.
Diffstat (limited to 'malloc')
-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));