summaryrefslogtreecommitdiff
path: root/rts/posix/Signals.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/posix/Signals.c')
-rw-r--r--rts/posix/Signals.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rts/posix/Signals.c b/rts/posix/Signals.c
index f8bd9fb829..2e534042f3 100644
--- a/rts/posix/Signals.c
+++ b/rts/posix/Signals.c
@@ -624,7 +624,7 @@ set_sigtstp_action (bool handle)
void
install_vtalrm_handler(int sig, TickProc handle_tick)
{
- struct sigaction action;
+ struct sigaction action = {};
action.sa_handler = handle_tick;
@@ -666,7 +666,8 @@ install_vtalrm_handler(int sig, TickProc handle_tick)
void
initDefaultHandlers(void)
{
- struct sigaction action,oact;
+ struct sigaction action = {};
+ struct sigaction oact = {};
// install the SIGINT handler
action.sa_handler = shutdown_handler;