From 0bcf0314f7a2d832622a87fe2bb04022a889ac54 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 8 Apr 2019 16:06:57 +0200 Subject: Fix jump over uninitialized value in OS Unix/X11 --- drivers/unix/os_unix.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/unix/os_unix.cpp') diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index e7550903a8..2778590658 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -108,6 +108,7 @@ void OS_Unix::initialize_debugging() { if (ScriptDebugger::get_singleton() != NULL) { struct sigaction action; + memset(&action, 0, sizeof(action)); action.sa_handler = handle_interrupt; sigaction(SIGINT, &action, NULL); } -- cgit v1.2.3