mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* malloc/tst-mallocfork.c (do_test): Make sure sa_flags is
initialized. Reported by John Reiser <jreiser@BitWagon.com>.
This commit is contained in:
@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user