Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Fix use-after-free for print -zf and print -sf



On Tue, Feb 10, 2015 at 8:12 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>      /* Testing EBADF special-cases >&- redirections */
> -    if ((fout != stdout) ? (fclose(fout) != 0) :
> +    if (fout && (fout != stdout) ? (fclose(fout) != 0) :

Do I need an extra set of parens here? C precedence rules are fun.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author