summaryrefslogtreecommitdiff
path: root/src/w32menu.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2003-06-15 21:05:34 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2003-06-15 21:05:34 +0000
commitf456401b964521d19236fb148bba7f654856eec5 (patch)
treebc3ac7a89318e7615063fcf1bdd7d10ae4988e1f /src/w32menu.c
parent50acda85ee021f6128831acea74c9a40287d1410 (diff)
downloademacs-f456401b964521d19236fb148bba7f654856eec5.tar.gz
(menubar_selection_callback): Don't pass uninitialized
data to kbd_buffer_store_event.
Diffstat (limited to 'src/w32menu.c')
-rw-r--r--src/w32menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/w32menu.c b/src/w32menu.c
index 872cb12e997..02bd62eb160 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -1,5 +1,5 @@
/* Menu support for GNU Emacs on the Microsoft W32 API.
- Copyright (C) 1986, 88, 93, 94, 96, 98, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1986,88,93,94,96,98,1999,2003 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -1035,6 +1035,7 @@ menubar_selection_callback (FRAME_PTR f, void * client_data)
int j;
struct input_event buf;
Lisp_Object frame;
+ EVENT_INIT (buf);
XSETFRAME (frame, f);
buf.kind = MENU_BAR_EVENT;