From e33c22a5638db14fdd8055021aa77d250a86bd1a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 19 Feb 2006 23:41:31 +0000 Subject: [PATCH] (digest_single_submenu): When pane_string is empty, do initialize save_wv. --- src/xmenu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xmenu.c b/src/xmenu.c index ef41aec7b79..9b93822ecf5 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1807,8 +1807,11 @@ digest_single_submenu (start, end, top_level_items) wv->enabled = 1; wv->button_type = BUTTON_TYPE_NONE; wv->help = Qnil; + save_wv = wv; } - save_wv = wv; + else + save_wv = first_wv; + prev_wv = 0; i += MENU_ITEMS_PANE_LENGTH; } -- 2.39.2