aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2006-02-12 03:15:33 +0000
committerKaroly Lorentey2006-02-12 03:15:33 +0000
commit4d73ec190ef402d6c7b19eccddc1e6e39422c4fd (patch)
treee2ac82d0d1ec060291bc4d2a13af44a176870519
parent1913a2b35da45eeeb71ef851975be7d57c11de78 (diff)
downloademacs-4d73ec190ef402d6c7b19eccddc1e6e39422c4fd.tar.gz
emacs-4d73ec190ef402d6c7b19eccddc1e6e39422c4fd.zip
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
-rw-r--r--src/xterm.c7
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
7552x_catch_errors_unwind (dummy) 7552x_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)