changeset 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 37dada8ae351
children 569c2c6d812f
files src/xmenu.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;
 		}