]> git.eshelyaron.com Git - emacs.git/commitdiff
(menubar_selection_callback): Don't pass uninitialized
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 15 Jun 2003 21:05:34 +0000 (21:05 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 15 Jun 2003 21:05:34 +0000 (21:05 +0000)
data to kbd_buffer_store_event.

src/macmenu.c
src/w32menu.c

index 166ef22a6e988de6fa4b0bf0a761f82f21fb1866..72fb95fbaa940ce6fc08968f59cd2b60602ff0de 100644 (file)
@@ -1,5 +1,5 @@
 /* Menu support for GNU Emacs on the for Mac OS.
-   Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -1035,6 +1035,7 @@ menubar_selection_callback (FRAME_PTR f, int client_data)
              int j;
              struct input_event buf;
              Lisp_Object frame;
+             EVENT_INIT (buf);
 
              XSETFRAME (frame, f);
              buf.kind = MENU_BAR_EVENT;
index 872cb12e9977cffe094728ab803929a7ad6344a6..02bd62eb1604d0edb1959a27f7c533946974fba4 100644 (file)
@@ -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;