Mercurial > emacs
comparison src/xterm.c @ 83469:5816618f2b6d
Add explicit abort() when x_catch_errors_unwind is called by mistake.
* src/xterm.c (x_catch_errors_unwind): Abort if x_error_message is NULL.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-509
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sun, 12 Feb 2006 03:15:33 +0000 |
parents | b98066f4aa10 |
children | 428d132b4028 |
comparison
equal
deleted
inserted
replaced
83468:b98066f4aa10 | 83469:5816618f2b6d |
---|---|
7550 | 7550 |
7551 static Lisp_Object | 7551 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 | |
7558 if (!x_error_message) | |
7559 abort (); | |
7560 | |
7561 dpy = x_error_message->dpy; | |
7557 | 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) |
7561 { | 7566 { |