Fix jump over uninitialized value in OS Unix/X11
This commit is contained in:
parent
e40aea7fec
commit
0bcf0314f7
2 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -3238,6 +3238,8 @@ OS_X11::OS_X11() {
|
|||
AudioDriverManager::add_driver(&driver_alsa);
|
||||
#endif
|
||||
|
||||
xi.opcode = 0;
|
||||
xi.last_relative_time = 0;
|
||||
layered_window = false;
|
||||
minimized = false;
|
||||
xim_style = 0L;
|
||||
|
|
Loading…
Reference in a new issue