aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-16 03:50:38 +0000
committerRichard M. Stallman1994-04-16 03:50:38 +0000
commit5964e4506617613f833e333483ae099489fbc427 (patch)
tree9fa0e71334debd339fac00f2e5f5ff07ae465725 /src
parent71e61810da1b724619df213a294daeb5294f2194 (diff)
downloademacs-5964e4506617613f833e333483ae099489fbc427.tar.gz
emacs-5964e4506617613f833e333483ae099489fbc427.zip
(xmenu_show): Don't cons on subprefix_stck[j] if nil.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c3
1 files changed, 2 insertions, 1 deletions
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)
1727 if (!NILP (prefix)) 1727 if (!NILP (prefix))
1728 entry = Fcons (prefix, entry); 1728 entry = Fcons (prefix, entry);
1729 for (j = submenu_depth - 1; j >= 0; j--) 1729 for (j = submenu_depth - 1; j >= 0; j--)
1730 entry = Fcons (subprefix_stack[j], entry); 1730 if (!NILP (subprefix_stack[j], entry))
1731 entry = Fcons (subprefix_stack[j], entry);
1731 } 1732 }
1732 return entry; 1733 return entry;
1733 } 1734 }