gmain: Fix use of uninitialized memory in sigaction structure

https://bugzilla.gnome.org/show_bug.cgi?id=711754
This commit is contained in:
Stef Walter 2013-10-31 11:43:14 +01:00
parent fd7b2faa64
commit 81d0ebe29c

View File

@ -4978,6 +4978,7 @@ unref_unix_signal_handler_unlocked (int signum)
if (unix_signal_refcount[signum] == 0)
{
struct sigaction action;
memset (&action, 0, sizeof (action));
action.sa_handler = SIG_DFL;
sigemptyset (&action.sa_mask);
sigaction (signum, &action, NULL);