Mercurial > emacs
comparison src/xterm.c @ 51576:df2c9d815bb3
(x_dispatch_event): Don't pass uninitialized
data to kbd_buffer_store_event.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 15 Jun 2003 21:20:55 +0000 |
parents | c3e680aa1a51 |
children | fab11a57338c |
comparison
equal
deleted
inserted
replaced
51575:45724e359a61 | 51576:df2c9d815bb3 |
---|---|
6987 XEvent *event; | 6987 XEvent *event; |
6988 Display *display; | 6988 Display *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 | |
6996 for (bufpp = bufp; bufpp != bufp + 10; bufpp++) | |
6997 EVENT_INIT (*bufpp); | |
6998 bufpp = bufp; | |
6995 | 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; |
6999 | 7003 |