From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25434 invoked by alias); 3 Oct 2014 15:33:47 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33346 Received: (qmail 6010 invoked from network); 3 Oct 2014 15:33:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <141003083327.ZM15145@torch.brasslantern.com> Date: Fri, 03 Oct 2014 08:33:27 -0700 In-reply-to: <20141003161518.01cbc081@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: More crash Re: More incmdpos stuff Re: Crash Re: Trial for 5.0.7" (Oct 3, 4:15pm) References: <20141003132702.044f9475@pwslap01u.europe.root.pri> <141003075022.ZM14943@torch.brasslantern.com> <20141003161518.01cbc081@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: More crash Re: More incmdpos stuff Re: Crash Re: Trial for 5.0.7 MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 3, 4:15pm, Peter Stephenson wrote: } Subject: Re: More crash Re: More incmdpos stuff Re: Crash Re: Trial for 5. } } The explanation is I screwed up. *complex should never be set to 0 } except where the variable pointed to is created --- it should only be } conditionally set to 1. (For zsh-shaped values of "never".) Does that mean we need this, too? --- a/Src/parse.c +++ b/Src/parse.c @@ -1517,7 +1517,8 @@ par_funcdef(int *complex) num++; zshlex(); } - *cmplx = (num > 0); + if (num > 0) + *cmplx = 1; ecbuf[parg] = ecused - parg; /*?*/ ecbuf[parg+1] = num; }