diff src/xterm.c @ 94399:5901a9d70af5

(XTread_socket): Fix use of uninitialized variable.
author Andreas Schwab <schwab@suse.de>
date Sun, 27 Apr 2008 10:44:37 +0000
parents ed10c3092847
children 3a28e9f5eda0
line wrap: on
line diff
--- a/src/xterm.c	Sun Apr 27 10:21:48 2008 +0000
+++ b/src/xterm.c	Sun Apr 27 10:44:37 2008 +0000
@@ -7329,7 +7329,9 @@
   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 @@
   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.  */