* [PATCH] Fix tst-mallocfork
@ 2005-11-28 12:45 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2005-11-28 12:45 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Glibc hackers
Hi!
As detected by valgrind, sa_flags was uninitialized when calling
sigaction. Fixed thusly.
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>.
--- libc/malloc/tst-mallocfork.c.jj 2005-09-27 07:42:06.000000000 +0200
+++ libc/malloc/tst-mallocfork.c 2005-11-28 13:28:48.000000000 +0100
@@ -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));
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-28 12:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-28 12:45 [PATCH] Fix tst-mallocfork Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).