Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
94398:ba1aba1fd255 | 94399:5901a9d70af5 |
---|---|
7327 struct input_event *hold_quit; | 7327 struct input_event *hold_quit; |
7328 { | 7328 { |
7329 int count = 0; | 7329 int count = 0; |
7330 XEvent event; | 7330 XEvent event; |
7331 int event_found = 0; | 7331 int event_found = 0; |
7332 #if 0 | |
7332 struct x_display_info *dpyinfo; | 7333 struct x_display_info *dpyinfo; |
7334 #endif | |
7333 | 7335 |
7334 if (interrupt_input_blocked) | 7336 if (interrupt_input_blocked) |
7335 { | 7337 { |
7336 interrupt_input_pending = 1; | 7338 interrupt_input_pending = 1; |
7337 return -1; | 7339 return -1; |
7364 | 7366 |
7365 /* For debugging, this gives a way to fake an I/O error. */ | 7367 /* For debugging, this gives a way to fake an I/O error. */ |
7366 if (terminal->display_info.x == XTread_socket_fake_io_error) | 7368 if (terminal->display_info.x == XTread_socket_fake_io_error) |
7367 { | 7369 { |
7368 XTread_socket_fake_io_error = 0; | 7370 XTread_socket_fake_io_error = 0; |
7369 x_io_error_quitter (dpyinfo->display); | 7371 x_io_error_quitter (terminal->display_info.x->display); |
7370 } | 7372 } |
7371 | 7373 |
7372 #if 0 /* This loop is a noop now. */ | 7374 #if 0 /* This loop is a noop now. */ |
7373 /* Find the display we are supposed to read input for. | 7375 /* Find the display we are supposed to read input for. |
7374 It's the one communicating on descriptor SD. */ | 7376 It's the one communicating on descriptor SD. */ |