diff options
| author | Stefan Monnier | 2003-06-15 21:05:34 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-06-15 21:05:34 +0000 |
| commit | f456401b964521d19236fb148bba7f654856eec5 (patch) | |
| tree | bc3ac7a89318e7615063fcf1bdd7d10ae4988e1f /src/macmenu.c | |
| parent | 50acda85ee021f6128831acea74c9a40287d1410 (diff) | |
| download | emacs-f456401b964521d19236fb148bba7f654856eec5.tar.gz emacs-f456401b964521d19236fb148bba7f654856eec5.zip | |
(menubar_selection_callback): Don't pass uninitialized
data to kbd_buffer_store_event.
Diffstat (limited to 'src/macmenu.c')
| -rw-r--r-- | src/macmenu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/macmenu.c b/src/macmenu.c index 166ef22a6e9..72fb95fbaa9 100644 --- a/src/macmenu.c +++ b/src/macmenu.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Menu support for GNU Emacs on the for Mac OS. | 1 | /* Menu support for GNU Emacs on the for Mac OS. |
| 2 | Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. | 2 | Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -1035,6 +1035,7 @@ menubar_selection_callback (FRAME_PTR f, int client_data) | |||
| 1035 | int j; | 1035 | int j; |
| 1036 | struct input_event buf; | 1036 | struct input_event buf; |
| 1037 | Lisp_Object frame; | 1037 | Lisp_Object frame; |
| 1038 | EVENT_INIT (buf); | ||
| 1038 | 1039 | ||
| 1039 | XSETFRAME (frame, f); | 1040 | XSETFRAME (frame, f); |
| 1040 | buf.kind = MENU_BAR_EVENT; | 1041 | buf.kind = MENU_BAR_EVENT; |