diff --git a/unix/unix_mphal.c b/unix/unix_mphal.c index 4ea682f0c8..523e34dd8d 100644 --- a/unix/unix_mphal.c +++ b/unix/unix_mphal.c @@ -53,6 +53,7 @@ void mp_hal_set_interrupt_char(char c) { #ifndef _WIN32 // enable signal handler struct sigaction sa; + memset(&sa, 0, sizeof(sa)); sa.sa_handler = sighandler; sigemptyset(&sa.sa_mask); sigaction(SIGINT, &sa, NULL);