Commit 72c5f71c authored by Grégory Mounié's avatar Grégory Mounié Committed by Eli Zaretskii

Avoid segfaults if XIM is set but not xim_styles

Emacs segfaults at the X11 initialization if XIM is set
and xim_styles is NULL.  This patch avoids the crash.
* src/xfns.c: Check also if FRAME_X_XIM_STYLES(f) is NULL.
(Bug#42676)  (Bug#42673)  (Bug#42677)

Copyright-paperwork-exempt: yes
parent f54ddb01
Pipeline #6209 passed with stage
in 69 minutes and 7 seconds
......@@ -2658,7 +2658,7 @@ create_frame_xic (struct frame *f)
goto out;
xim = FRAME_X_XIM (f);
if (!xim)
if (!xim || ! FRAME_X_XIM_STYLES(f))
goto out;
/* Determine XIC style. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment