diff options
| author | Stefan Monnier | 2003-06-15 21:20:55 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-06-15 21:20:55 +0000 |
| commit | 2cd679c3c8849eb820895ec9ffb589435dc6b8d7 (patch) | |
| tree | dc509ec8ea2d891f9220d60168fceaaaf23cb9ee | |
| parent | 38f7dce375da5ab3a9172185dc6fc5e54ecaf863 (diff) | |
| download | emacs-2cd679c3c8849eb820895ec9ffb589435dc6b8d7.tar.gz emacs-2cd679c3c8849eb820895ec9ffb589435dc6b8d7.zip | |
(x_dispatch_event): Don't pass uninitialized
data to kbd_buffer_store_event.
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 590ce4f7917..f4f411aa5df 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6989,10 +6989,14 @@ x_dispatch_event (event, display) | |||
| 6989 | { | 6989 | { |
| 6990 | struct x_display_info *dpyinfo; | 6990 | struct x_display_info *dpyinfo; |
| 6991 | struct input_event bufp[10]; | 6991 | struct input_event bufp[10]; |
| 6992 | struct input_event *bufpp = bufp; | 6992 | struct input_event *bufpp; |
| 6993 | int numchars = 10; | 6993 | int numchars = 10; |
| 6994 | int finish = X_EVENT_NORMAL; | 6994 | int finish = X_EVENT_NORMAL; |
| 6995 | 6995 | ||
| 6996 | for (bufpp = bufp; bufpp != bufp + 10; bufpp++) | ||
| 6997 | EVENT_INIT (*bufpp); | ||
| 6998 | bufpp = bufp; | ||
| 6999 | |||
| 6996 | for (dpyinfo = x_display_list; dpyinfo; dpyinfo = dpyinfo->next) | 7000 | for (dpyinfo = x_display_list; dpyinfo; dpyinfo = dpyinfo->next) |
| 6997 | if (dpyinfo->display == display) | 7001 | if (dpyinfo->display == display) |
| 6998 | break; | 7002 | break; |