summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2007-04-03 15:51:53 +0000
committermp <mp@FreeBSD.org>2007-04-03 15:51:53 +0000
commit82d7694e692c49f7bdb5aaeedaf43c10765ae4b8 (patch)
tree47c27ba1c45471ae903e24c52d6b0609bbd39a03 /contrib/tcsh
parent5ef608fbbe311c6a0ec7a98e18292f12af4d3fea (diff)
parent637c0444dc574ef343005895e3cfe1143c674c53 (diff)
downloadFreeBSD-src-82d7694e692c49f7bdb5aaeedaf43c10765ae4b8.zip
FreeBSD-src-82d7694e692c49f7bdb5aaeedaf43c10765ae4b8.tar.gz
This commit was generated by cvs2svn to compensate for changes in r168305,
which included commits to RCS files with non-trunk default branches.
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 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);
OpenPOWER on IntegriCloud