Import vendor patch to fix postcmd regression in tcsh-6.15.00.

This commit is contained in:
Mark Peek 2007-04-03 15:51:53 +00:00
parent 45e5710bbb
commit 4f796ffc7b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/tcsh/dist/; revision=168305

View File

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