]> git.eshelyaron.com Git - emacs.git/commitdiff
(xmenu_show): Don't cons on subprefix_stck[j] if nil.
authorRichard M. Stallman <rms@gnu.org>
Sat, 16 Apr 1994 03:50:38 +0000 (03:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 16 Apr 1994 03:50:38 +0000 (03:50 +0000)
src/xmenu.c

index 9614e75243083d91bb557c3ddf712024220a9289..83f559a1fdc0c1a75386bb9ddd8195f4f0999858 100644 (file)
@@ -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;
                }