Reapply a bugfix that was done as sh.lex.c,v 1.1.1.8

This commit is contained in:
Xin LI 2008-03-12 23:01:33 +00:00
parent 1dd6018d3b
commit 9a5e637124

View File

@ -851,6 +851,7 @@ getsub(struct wordent *en)
return (en);
}
slhs.len = 0;
if (lhsb.s != NULL && lhsb.len != 0)
Strbuf_append(&slhs, lhsb.s);
Strbuf_terminate(&slhs);
if (exclc)