Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (Fwd) segfault with pcre_study alone
- X-seq: zsh-workers 19635
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: (Fwd) segfault with pcre_study alone
- Date: Tue, 16 Mar 2004 10:18:57 -0800
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <11530.1079460328@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1040316145551.ZM8418@xxxxxxxxxxxxxxxxxxxxxxx> <20040316150753.GA21121@xxxxxxxxxxx> <20040316152006.GA21815@xxxxxxxxxxx> <11530.1079460328@xxxxxxxxxxxxxxxxxxxxx>
On Tue, Mar 16, 2004 at 07:05:28PM +0100, Oliver Kiddle wrote:
> Also, shouldn't you initialise pcre_pattern to NULL where it is
> declared since we are now relying on the compiler to initialise it to
> null by doing this.
It's a static variable, so the C standard guarantees that it will be
initialized to NULL by default. Some folks like to explicitly
initialize static variables anyway, just for clarity, but it's not
required (and wouldn't change the code produced by the compiler).
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author