From 5964e4506617613f833e333483ae099489fbc427 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 16 Apr 1994 03:50:38 +0000 Subject: [PATCH] (xmenu_show): Don't cons on subprefix_stck[j] if nil. --- src/xmenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xmenu.c b/src/xmenu.c index 9614e752430..83f559a1fdc 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1727,7 +1727,8 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error) if (!NILP (prefix)) entry = Fcons (prefix, entry); for (j = submenu_depth - 1; j >= 0; j--) - entry = Fcons (subprefix_stack[j], entry); + if (!NILP (subprefix_stack[j], entry)) + entry = Fcons (subprefix_stack[j], entry); } return entry; } -- 2.39.5