diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2019-04-10 11:06:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 11:06:37 +0200 |
commit | f75b9e62468ba65753f2ce49c02f1a129c08b717 (patch) | |
tree | 87fde15eeffdde3fa2bcd239fce64b153ef67c92 /drivers/unix/os_unix.cpp | |
parent | 5772f60f960ee8c396574f0c6f94def18bb210c7 (diff) | |
parent | 0bcf0314f7a2d832622a87fe2bb04022a889ac54 (diff) |
Merge pull request #27815 from Faless/unix/mem_access
Fix jump over uninitialized value in OS Unix/X11
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-rw-r--r-- | drivers/unix/os_unix.cpp | 1 |
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); } |