aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2008-04-27 10:44:37 +0000
committerAndreas Schwab <[email protected]>2008-04-27 10:44:37 +0000
commitec1bf773dfe219d3480bc21422b8024b19df9117 (patch)
tree45523c4934bf7a01a497f8b32e4e457d9ed79646 /src/xterm.c
parentea6104a81e0459e3b901ccdb588762ecf1ba9fc4 (diff)
(XTread_socket): Fix use of uninitialized variable.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 147e492e7d..5dda7ed2c5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7329,7 +7329,9 @@ XTread_socket (terminal, expected, hold_quit)
int count = 0;
XEvent event;
int event_found = 0;
+#if 0
struct x_display_info *dpyinfo;
+#endif
if (interrupt_input_blocked)
{
@@ -7366,7 +7368,7 @@ XTread_socket (terminal, expected, hold_quit)
if (terminal->display_info.x == XTread_socket_fake_io_error)
{
XTread_socket_fake_io_error = 0;
- x_io_error_quitter (dpyinfo->display);
+ x_io_error_quitter (terminal->display_info.x->display);
}
#if 0 /* This loop is a noop now. */