changeset 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 ba1aba1fd255
children 049f194820fe
files src/ChangeLog src/xterm.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Apr 27 10:21:48 2008 +0000
+++ b/src/ChangeLog	Sun Apr 27 10:44:37 2008 +0000
@@ -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>
--- 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.  */