summaryrefslogtreecommitdiffstats
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-04-08 16:06:57 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-04-09 15:12:55 +0200
commit0bcf0314f7a2d832622a87fe2bb04022a889ac54 (patch)
tree49299f76965cac5783baafc6b7c41f23f98462c6 /drivers/unix/os_unix.cpp
parente40aea7fecd86240502d8e2e8f8492428f8df307 (diff)
downloadredot-engine-0bcf0314f7a2d832622a87fe2bb04022a889ac54.tar.gz
Fix jump over uninitialized value in OS Unix/X11
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-rw-r--r--drivers/unix/os_unix.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}