Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Plug some fd leaks in bin_print
- X-seq: zsh-workers 34152
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: Plug some fd leaks in bin_print
- Date: Wed, 7 Jan 2015 04:15:44 +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=5qZ/LlnYQuKyhDupJaUvCOjqj5hrJehaxErf3pm/DIA=; b=Fn4HCKUCri8EsfFgpi5M6y5a6Z9Hgo/R+AXWxpZHRpOCssb8xVl2lrm6uNXX07a9zb JQ8fMj1+PBztFHwhW7ZS53pVFsmRZpZPXOwTkeWjXRoBIT0NpSibmFKEqmR1hCFiurlr RWDylU3oJLxfmvEAzi+ZpAoZPAIIYdxJ3kmKSjnr/23KPc2DBDVbuN3NVk3/cv7YIYoM Z5QyI8A7Rbf9N2aRmoeYj0NpHMTfA8m+v4e2GQDuoSxHhBFQysMHVwIfTpHWRX9twAvT 380lAFIQTfaj6TAdlbcaVwuciJ90pLL5sLPViMNKGr5Gs9O00Fwe7+F5pnhBkt0GWNXM ISqA==
- In-reply-to: <150106172131.ZM815@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: <1420590318-17047-1-git-send-email-mikachu@gmail.com> <150106172131.ZM815@torch.brasslantern.com>
On Wed, Jan 7, 2015 at 2:21 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jan 7, 1:25am, Mikael Magnusson wrote:
> } Subject: PATCH: Plug some fd leaks in bin_print
> }
> } Found by Coverity (Issue 439120).
>
> Adding a whole bunch of "goto" is really the best way to fix this?
It seemed nicer than copying that four line mess of ternary operators
to 10 different places.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author