From 9e80b57d282aadd5d4668ab89444bec4798c55bd Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 9 Jun 2000 16:13:11 +0000 Subject: [PATCH] * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to access the data it doesn't point to. --- src/ChangeLog | 5 +++++ src/xterm.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 910c24e8063..1b0e6bb0452 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-06-09 Ken Raeburn + + * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to + access the data it doesn't point to. + 2000-06-08 Gerd Moellmann * xterm.c (XTread_socket) : Queue a FOCUS_IN_EVENT which diff --git a/src/xterm.c b/src/xterm.c index eea9b76d191..c2cc57a319d 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10799,7 +10799,8 @@ x_connection_closed (display, error_message) #endif #endif - dpyinfo->display = 0; + if (dpyinfo) + dpyinfo->display = 0; /* First delete frames whose mini-buffers are on frames that are on the dead display. */ -- 2.39.5