1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

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
This commit is contained in:
Karoly Lorentey 2006-02-12 03:15:33 +00:00
parent 1913a2b35d
commit 4d73ec190e

View file

@ -7552,9 +7552,14 @@ static Lisp_Object
x_catch_errors_unwind (dummy)
Lisp_Object dummy;
{
Display *dpy = x_error_message->dpy;
Display *dpy;
struct x_error_message_stack *tmp;
if (!x_error_message)
abort ();
dpy = x_error_message->dpy;
/* The display may have been closed before this function is called.
Check if it is still open before calling XSync. */
if (x_display_info_for_display (dpy) != 0)