about summary refs log tree commit diff stats
path: root/001help.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-06-02 16:24:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-06-02 16:24:27 -0700
commitdf37108fecfa182ed905618e90aafcf362d7dab3 (patch)
tree25aaf0af73e0351e9f5d8c6f94d54b3b345dae7b /001help.cc
parentfd72ec75e09c8a86a5708a4a9f6375038a96a5ce (diff)
downloadmu-df37108fecfa182ed905618e90aafcf362d7dab3.tar.gz
3033
Diffstat (limited to '001help.cc')
-rw-r--r--001help.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/001help.cc b/001help.cc
index 1b4c6535..830f50a8 100644
--- a/001help.cc
+++ b/001help.cc
@@ -107,6 +107,7 @@ initialize_signal_handlers();  // not always necessary, but doesn't hurt
 // based on https://spin.atomicobject.com/2013/01/13/exceptions-stack-traces-c
 void initialize_signal_handlers() {
   struct sigaction action;
+  bzero(&action, sizeof(action));
   action.sa_sigaction = dump_and_exit;
   sigemptyset(&action.sa_mask);
   sigaction(SIGABRT, &action, NULL);  // assert() failure or integer overflow on linux (with -ftrapv)