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:
parent
1913a2b35d
commit
4d73ec190e
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue