dc1902
diff --git a/src/cmd/ksh93/sh/parse.c b/src/cmd/ksh93/sh/parse.c
dc1902
index d139389..5a02af7 100644
dc1902
--- a/src/cmd/ksh93/sh/parse.c
dc1902
+++ b/src/cmd/ksh93/sh/parse.c
dc1902
@@ -2032,6 +2032,7 @@ unsigned long kiaentity(Lex_t *lexp,const char *name,int len,int type,int first,
dc1902
 		else
dc1902
 			sfputr(stkp,name,0);
dc1902
 	}
dc1902
+	sfputc(stkp,'\0');
dc1902
 	np = nv_search(stakptr(offset),lexp->entity_tree,NV_ADD);
dc1902
 	stkseek(stkp,offset);
dc1902
 	np->nvalue.i = pkind;