Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH 06/17: compctl: Remove pointless check
- X-seq: zsh-workers 34125
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH 06/17: compctl: Remove pointless check
- Date: Tue, 6 Jan 2015 10:18: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=t5r7+5kS4xHnVWn+rGJ7ckTai9wZe/U3d0VJqVIdI+g=; b=ZLghCK/+ptOIfMZ3d+evOTgCIyrquWJFPDi8BBwKRnt38FnS3AcYt8MLMMIGcdZKWX h8PobhKFdrC8XWA1DBhjokQ+m4IaOOhvP3weJL5YrkUdDjVtj5WXPM2uN+D2mbl68GAF /50ixtoW4DlfiHIkXbufSOngeh6mSS2ybi1QF0lZLYJiNNX0ef+LRBROqmtqIWPVmNVD L8fl6NJu8WlNh0oFeqlGasjGaGsFbTwTDJ/naF3ueKbelInHXh83s4m3Z4ApgOUgzKiH jvSZfRcYNf+2+j01Ycbwz1PvoaQFWCDFi/Ju9RlVnKU4Row9hS7FsZxis77nbo84UthJ hdHA==
- In-reply-to: <150105235302.ZM10839@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-7-git-send-email-mikachu@gmail.com> <150105235302.ZM10839@torch.brasslantern.com>
On Tue, Jan 6, 2015 at 8:53 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jan 6, 6:25am, Mikael Magnusson wrote:
> } Subject: PATCH 06/17: compctl: Remove pointless check
> }
> } cc has already been derefed a bunch of times leading up to here. Found
> } by Coverity (Issue 1255841).
> } - if (cc && cc->xor) {
> } + if (cc->xor) {
>
> I'm curious, why bother to "fix" this (and a couple of similar others in
> later patches in this series)? It's not *wrong*, and the change is not
> a significant optimization.
It's similar effort to just fix the code or to mark it as a false
positive in coverity, and fixing it makes the code less confusing to
look at as well, so I went with the patches.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author