diff options
author | mp <mp@FreeBSD.org> | 2007-04-03 15:51:53 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2007-04-03 15:51:53 +0000 |
commit | 637c0444dc574ef343005895e3cfe1143c674c53 (patch) | |
tree | 75fb786bd67bdafad610ddedcc8e57e30eed49ad /contrib | |
parent | a40980339b13e3b506c2317b5b4864127039eb2c (diff) | |
download | FreeBSD-src-637c0444dc574ef343005895e3cfe1143c674c53.zip FreeBSD-src-637c0444dc574ef343005895e3cfe1143c674c53.tar.gz |
Import vendor patch to fix postcmd regression in tcsh-6.15.00.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/tcsh/sh.lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/tcsh/sh.lex.c b/contrib/tcsh/sh.lex.c index 0cccf47..8eccb4d 100644 --- a/contrib/tcsh/sh.lex.c +++ b/contrib/tcsh/sh.lex.c @@ -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); |