+2011-05-12 Paul Eggert <eggert@cs.ucla.edu>
+
+ * xmenu.c (set_frame_menubar): Don't mishandle vectors with no nils.
+
2011-05-11 Paul Eggert <eggert@cs.ucla.edu>
* xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers.
#endif
Lisp_Object items;
widget_value *wv, *first_wv, *prev_wv = 0;
- EMACS_UINT i, last_i = 0;
+ EMACS_UINT i, last_i;
int *submenu_start, *submenu_end;
int *submenu_top_level_items, *submenu_n_panes;
{
Lisp_Object key, string, maps;
- last_i = i;
-
key = XVECTOR (items)->contents[4 * i];
string = XVECTOR (items)->contents[4 * i + 1];
maps = XVECTOR (items)->contents[4 * i + 2];
submenu_end[i] = menu_items_used;
}
+ last_i = i;
finish_menu_items ();
/* Convert menu_items into widget_value trees