diff options
author | Mark Peek <mp@FreeBSD.org> | 2007-04-03 15:51:53 +0000 |
---|---|---|
committer | Mark Peek <mp@FreeBSD.org> | 2007-04-03 15:51:53 +0000 |
commit | 4f796ffc7b6ab4dc9f494b127eaccb303a1ae28c (patch) | |
tree | 75fb786bd67bdafad610ddedcc8e57e30eed49ad /contrib/tcsh | |
parent | 45e5710bbb3676c9d945e9df78019b2c58930a59 (diff) | |
download | src-4f796ffc7b6ab4dc9f494b127eaccb303a1ae28c.tar.gz src-4f796ffc7b6ab4dc9f494b127eaccb303a1ae28c.zip |
Import vendor patch to fix postcmd regression in tcsh-6.15.00.
Notes
Notes:
svn path=/vendor/tcsh/dist/; revision=168305
Diffstat (limited to 'contrib/tcsh')
-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 0cccf4716059..8eccb4d3e293 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); |