From 2aa588f016239e8fef3aeec97df7285f81b7f80b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 6 Apr 2022 08:48:41 +0800 Subject: [PATCH] * src/xterm.c (handle_one_xevent): Assert that hold_quit is present instead. --- src/xterm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 42ab90df751..37bbd5d7e1c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -13826,8 +13826,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, if (x_dnd_in_progress || x_dnd_waiting_for_finish) { - if (hold_quit) - *hold_quit = inev.ie; + eassert (hold_quit); + + *hold_quit = inev.ie; EVENT_INIT (inev.ie); } -- 2.39.5