core dump from within asctime_r()

Bill Seymour stdbill.h at
Sun Jan 31 01:21:17 UTC 2010

On Sat, Jan 30, 2010 at 5:37 PM, Tony Finch <dot at> wrote:
> On Sat, 30 Jan 2010, Robert Elz wrote:
>> locatime() can return NULL these days, ...
> This code follows the C standard, so this bug is a defect in the standard.

How so?  It's not the job of the standard to specify coding practices.
If a function can return a null pointer, programmers need to check
for that.

Is it "a defect in the standard" that malloc() can return NULL?

Or do you mean something else that I'm missing?

--Bill Seymour

More information about the tz mailing list