Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH 17/17: check widthp before deref (is this okay, or should it be *swidep = buf + *widthp ? *widthp : 0; or something)
- X-seq: zsh-workers 34138
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH 17/17: check widthp before deref (is this okay, or should it be *swidep = buf + *widthp ? *widthp : 0; or something)
- Date: Tue, 6 Jan 2015 12:28:20 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8LqNpU12VYZ4F4yePV9V8wbg9pCNzi3lvBSEbjoC4uY=; b=g24MlmWXsFYZS7K9nfebR21mwUH5O59J9vyhKkdDsydq2DCMElsPSNrwCk+g6ZhrpF CG6Oq63VLEIUQYshPYTNkasB97Crvt2Jb1R74m9MbvNkEu69kDDBAoi7AP7sJ8NdhPXQ ByLTBBDCTkQEz4vl5XU9I/BOkkNutNnXoDqznHMvxti9tw5RBZqqUKnlTFH9R7syaSpL Du0Kpi/HT+4JDE5PD/lXPBnGstvoND7/tPmklD3bn9V5t7fiYCJhz+1NDXRQuJiJBiOt iQcrJyUYM2jTCuGre9JYCSW1CJkb8riEdCi2HjVXkqFmT56NBaw0Pggw8c7psvQJwtqb ew4A==
- In-reply-to: <150105234932.ZM10829@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1420521949-30483-1-git-send-email-mikachu@gmail.com> <1420521949-30483-18-git-send-email-mikachu@gmail.com> <150105234932.ZM10829@torch.brasslantern.com>
On Tue, Jan 6, 2015 at 8:49 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jan 6, 6:25am, Mikael Magnusson wrote:
> }
> } + if (swidep && widthp)
> } *swidep = buf + *widthp;
>
> I think your parenthetical in the subject is on the right track, and
> it should be
>
> if (swidep)
> *swidep = widthp ? buf + *widthp : buf;
Okay, I've updated the patch in my queue to this version. And with
that I think all the feedback has been handled, I won't resend the
whole series before committing. If anyone wants to get some
last-minute reviewing in, you can snoop on my local tree at
http://comm.it.cx/cgit/zsh-cvs/log/
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author