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

Re: [PATCH] don't call regfree() on uninitialized regex_t



On 2009-01-19 at 00:22 -0800, Wayne Davison wrote:
> While I was fixing a few compiler warnings in zcond_regex_match(), I
> noticed that regfree() could be called on an uninitialized regex_t if
> the "id" value passed in to the function was invalid.  Attached is one
> possible fix.

Thanks -- looks like I was too clever for my own good.

-Phil



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