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

Re: [BUG] Redirect between two parameter assignments causes misbehaviour



Daniel Shahaf wrote on Mon, 11 Dec 2017 01:07 +0000:
> It's spinning in the 'while (1)' in gettext2() on WC_END.
> 
> If I change the definition of WC_END to 0 then it hits the 'default'
> branch of the case, returns from gettext2(), and doesn't spin.
> 

Sorry, I meant: change it to a *non-zero* value.

> Without having looked any further into it, I wonder whether we should
> change WC_END to zero, so if we ever calloc() something and forget to
> initialise it, it won't be mistaken for valid data.



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