mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
gmain: Fix use of uninitialized memory in sigaction structure
https://bugzilla.gnome.org/show_bug.cgi?id=711754
This commit is contained in:
parent
fd7b2faa64
commit
81d0ebe29c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user