]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* malloc/tst-mallocfork.c (do_test): Make sure sa_flags is
authorRoland McGrath <roland@gnu.org>
Tue, 6 Dec 2005 00:50:15 +0000 (00:50 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 6 Dec 2005 00:50:15 +0000 (00:50 +0000)
initialized.  Reported by John Reiser <jreiser@BitWagon.com>.

ChangeLog
malloc/tst-mallocfork.c

index 42b693bfeb404eb7a9355999e3806f8b4a837ee3..40c34f0f9601350b0f6d8901084d91cc0385c073 100644 (file)
--- 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.
index abbc9d83b6bac238da5c916352bba9c3fea98c16..f90ce948873dda590e33d867c808b2589b831e62 100644 (file)
@@ -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));