Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: segfault in strftime
- X-seq: zsh-workers 27757
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: segfault in strftime
- Date: Fri, 26 Feb 2010 09:47:31 -0800
- In-reply-to: <201002261645.o1QGji9R022432@xxxxxxxxxxxxxx>
- 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: <A73C7D9C-66C5-4BFA-8FB3-8560FE65B529@xxxxxxxxxxx> <20100226125256.GC13766@xxxxxxxxxxxxxxxxxxx> <20100226150748.GE13766@xxxxxxxxxxxxxxxxxxx> <20100226151712.05fbe555@news01> <20100226162130.GF13766@xxxxxxxxxxxxxxxxxxx> <201002261645.o1QGji9R022432@xxxxxxxxxxxxxx>
[>workers]
On Feb 26, 4:45pm, Peter Stephenson wrote:
} Subject: Re: segfault in strftime
}
} Vincent Lefevre wrote:
} > Wouldn't it be better to test only errno != 0 ?
}
} Well, given we're setting it to 0 beforehand that seems reasonable.
That's *probably* safe in this case ... but in general I don't think
so. The standards make no guarantee about the value of errno in the
case where the library call returns "successfully" (however that may
be defined) -- that is, the implementation is allowed to set errno
to what the next upcoming error *might* be, and is not required to
then clear errno before returning success.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author