diff options
author | Xin LI <delphij@FreeBSD.org> | 2008-03-12 23:01:33 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2008-03-12 23:01:33 +0000 |
commit | 9a5e6371241e3d4a2a5727e73f02896c8ed421a5 (patch) | |
tree | 35061d37a02346eb49986c0acdfe36b69d17be1b | |
parent | 1dd6018d3b9b7095a4a97c68754bd872e0f22186 (diff) |
Reapply a bugfix that was done as sh.lex.c,v 1.1.1.8vendor/tcsh/6.15b
Notes
Notes:
svn path=/vendor/tcsh/dist/; revision=177128
svn path=/vendor/tcsh/6.15b/; revision=177130; tag=vendor/tcsh/6.15b
-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); |