]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket): Fix use of uninitialized variable.
authorAndreas Schwab <schwab@suse.de>
Sun, 27 Apr 2008 10:44:37 +0000 (10:44 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 27 Apr 2008 10:44:37 +0000 (10:44 +0000)
src/ChangeLog
src/xterm.c

index bd210d9f72f336c3fa528ef91b2511ff6e14090d..4e28dc90fa7dee86b2b16b799b09b7682dcc6843 100644 (file)
@@ -1,5 +1,7 @@
 2008-04-27  Andreas Schwab  <schwab@suse.de>
 
+       * xterm.c (XTread_socket): Fix use of uninitialized variable.
+
        * puresize.h (BASE_PURESIZE): Increase to 1200000.
 
 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
index 147e492e7d5087b3b80fa25744522f9c6924b456..5dda7ed2c5d3fe0121328a5b2cbe228c7ef8e45b 100644 (file)
@@ -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.  */