aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2003-06-15 21:20:55 +0000
committerStefan Monnier <[email protected]>2003-06-15 21:20:55 +0000
commit2cd679c3c8849eb820895ec9ffb589435dc6b8d7 (patch)
treedc509ec8ea2d891f9220d60168fceaaaf23cb9ee /src/xterm.c
parent38f7dce375da5ab3a9172185dc6fc5e54ecaf863 (diff)
(x_dispatch_event): Don't pass uninitialized
data to kbd_buffer_store_event.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 590ce4f791..f4f411aa5d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6989,10 +6989,14 @@ x_dispatch_event (event, display)
{
struct x_display_info *dpyinfo;
struct input_event bufp[10];
- struct input_event *bufpp = bufp;
+ struct input_event *bufpp;
int numchars = 10;
int finish = X_EVENT_NORMAL;
+ for (bufpp = bufp; bufpp != bufp + 10; bufpp++)
+ EVENT_INIT (*bufpp);
+ bufpp = bufp;
+
for (dpyinfo = x_display_list; dpyinfo; dpyinfo = dpyinfo->next)
if (dpyinfo->display == display)
break;