aboutsummaryrefslogtreecommitdiff
path: root/src/espik_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/espik_debug.c')
-rw-r--r--src/espik_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/espik_debug.c b/src/espik_debug.c
index dfb7cdd..04b32a1 100644
--- a/src/espik_debug.c
+++ b/src/espik_debug.c
@@ -55,6 +55,7 @@ void espik_debug_init()
struct sigaction sa;
sa.sa_handler = espik_debug_bt;
+ memset (&sa, 0, sizeof (struct sigaction));
sigaction(SIGSEGV, &sa, (struct sigaction *)0);
sigaction(SIGINT, &sa, (struct sigaction *)0);
sigaction(SIGKILL, &sa, (struct sigaction *)0);