summaryrefslogtreecommitdiff
path: root/contrib/tcsh
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2008-03-12 23:01:33 +0000
committerXin LI <delphij@FreeBSD.org>2008-03-12 23:01:33 +0000
commit90eb3b443db05cae61a464a1518d3ec849f70cee (patch)
tree5f245d085c960b236fd137978cb9b4227df6d399 /contrib/tcsh
parent66257bc8d931fa71e7a6186d280f0966cd9192a4 (diff)
parent9a5e6371241e3d4a2a5727e73f02896c8ed421a5 (diff)
downloadsrc-test-90eb3b443db05cae61a464a1518d3ec849f70cee.tar.gz
src-test-90eb3b443db05cae61a464a1518d3ec849f70cee.zip
This commit was generated by cvs2svn to compensate for changes in r177128,
which included commits to RCS files with non-trunk default branches.
Notes
Notes: svn path=/head/; revision=177129
Diffstat (limited to 'contrib/tcsh')
-rw-r--r--contrib/tcsh/sh.lex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/tcsh/sh.lex.c b/contrib/tcsh/sh.lex.c
index 0cccf47160594..8eccb4d3e2932 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);