diff options
author | delphij <delphij@FreeBSD.org> | 2008-03-12 23:01:33 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-03-12 23:01:33 +0000 |
commit | ba621be3a9afcd65df9674a521af784165a5b950 (patch) | |
tree | 5f245d085c960b236fd137978cb9b4227df6d399 /contrib/tcsh | |
parent | 25711383c002760a3894eb1aed74c003616d752f (diff) | |
parent | e863b68dceedacef4fea511d5f1e2c5666b2b2ee (diff) | |
download | FreeBSD-src-ba621be3a9afcd65df9674a521af784165a5b950.zip FreeBSD-src-ba621be3a9afcd65df9674a521af784165a5b950.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r177128,
which included commits to RCS files with non-trunk default branches.
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 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); |