From 8ed98023b45d1cdea4217f7152dcdc77944a0ea7 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 15 Jan 2021 23:20:59 -0800 Subject: sighandler: initialize sigaction fields Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 9ae08745..3fbd757a 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -562,7 +562,9 @@ static void _alpm_reset_signals(void) 0 }; struct sigaction def; + def.sa_flags = 0; def.sa_handler = SIG_DFL; + sigemptyset(&def.sa_mask); for(i = signals; *i; i++) { sigaction(*i, &def, NULL); } -- cgit v1.2.3-70-g09d2