diff src/xmenu.c @ 6913:f167828a3ec2

(xmenu_show): Don't cons on subprefix_stck[j] if nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 16 Apr 1994 03:50:38 +0000
parents 796416bd7f7e
children 2d0ee7ef620a
line wrap: on
line diff
--- a/src/xmenu.c	Sat Apr 16 03:50:19 1994 +0000
+++ b/src/xmenu.c	Sat Apr 16 03:50:38 1994 +0000
@@ -1727,7 +1727,8 @@
 		      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;
 		}