diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 27abaebdb83..afbc718d645 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7552,9 +7552,14 @@ static Lisp_Object | |||
| 7552 | x_catch_errors_unwind (dummy) | 7552 | x_catch_errors_unwind (dummy) |
| 7553 | Lisp_Object dummy; | 7553 | Lisp_Object dummy; |
| 7554 | { | 7554 | { |
| 7555 | Display *dpy = x_error_message->dpy; | 7555 | Display *dpy; |
| 7556 | struct x_error_message_stack *tmp; | 7556 | struct x_error_message_stack *tmp; |
| 7557 | 7557 | ||
| 7558 | if (!x_error_message) | ||
| 7559 | abort (); | ||
| 7560 | |||
| 7561 | dpy = x_error_message->dpy; | ||
| 7562 | |||
| 7558 | /* The display may have been closed before this function is called. | 7563 | /* The display may have been closed before this function is called. |
| 7559 | Check if it is still open before calling XSync. */ | 7564 | Check if it is still open before calling XSync. */ |
| 7560 | if (x_display_info_for_display (dpy) != 0) | 7565 | if (x_display_info_for_display (dpy) != 0) |