Don't g_assert that localtime() returns non-NULL. It does return NULL at
authorTor Lillqvist <tml@novell.com>
Sat, 22 Jan 2005 22:10:45 +0000 (22:10 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 22 Jan 2005 22:10:45 +0000 (22:10 +0000)
commit76d763485bdf98142b4ebff300f59ad8534d044e
treeeaeaaa8fafe59b2846f30a8cd47299910a29531c
parentc9d1c167f43791331dc233016b9155fa4c3ac2df
Don't g_assert that localtime() returns non-NULL. It does return NULL at

2005-01-22  Tor Lillqvist  <tml@novell.com>

* glib/gdate.c (g_date_set_time): Don't g_assert that localtime()
returns non-NULL. It does return NULL at least on Win32 if you
pass it a negative time_t, which although wrong, shouldn't cause
an application to abort. Instead return 2000-01-01 as a default
date. Print a warning unless G_DISABLE_CHECKS. (#164622)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/gdate.c