From b27bd2fbabc939d2c40813e6df42a7e5f4303663 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Thu, 14 Jul 2022 13:34:36 -0700 Subject: [PATCH] Fix ldeinit segmentation fault on keyboard/mouse input (#425) Keyboard, cursor, and mouse pointers are not initialized in ldeinit. Do not process X events as they will cause a segmentation fault referencing the uninitialized pointers. --- src/xc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xc.c b/src/xc.c index c664c1a..7241ec8 100644 --- a/src/xc.c +++ b/src/xc.c @@ -1118,7 +1118,9 @@ check_interrupt: * If the system is configured with SIGIO handling we have a hint * that allows us to cheaply skip if there's nothing to do */ +#ifndef INIT process_Xevents(currentdsp); +#endif if (IO_Signalled) { IO_Signalled = FALSE;