From 637c0444dc574ef343005895e3cfe1143c674c53 Mon Sep 17 00:00:00 2001 From: mp Date: Tue, 3 Apr 2007 15:51:53 +0000 Subject: Import vendor patch to fix postcmd regression in tcsh-6.15.00. --- contrib/tcsh/sh.lex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/tcsh') 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); -- cgit v1.1