about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--malloc/tst-mallocfork.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 42b693bfeb..40c34f0f96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-28  Jakub Jelinek  <jakub@redhat.com>
+
+	* malloc/tst-mallocfork.c (do_test): Make sure sa_flags is
+	initialized.  Reported by John Reiser <jreiser@BitWagon.com>.
+
 2005-12-05  Daniel Jacobowitz  <dan@codesourcery.com>
 
 	* stdlib/longlong.h: Update from GCC.
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));