diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | properties/ev-properties-view.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2005-10-12 Nickolay V. Shmyrev <nshmyrev@yandex.ru> + + * properties/ev-properties-view.c: + (ev_properties_view_format_date): + + Check if date is invalid. Fix for bug 318134. + 2005-10-02 Wouter Bolsterlee <uws+gnome@xs4all.nl> * shell/ev-window-title.c: diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index 669421f..fdf5cf7 100644 --- a/properties/ev-properties-view.c +++ b/properties/ev-properties-view.c @@ -110,7 +110,7 @@ ev_properties_view_format_date (GTime utime) const char *fmt_hack = "%c"; size_t len; - if (!localtime_r (&time, &t)) return NULL; + if (time == 0 || !localtime_r (&time, &t)) return NULL; len = strftime (s, sizeof (s), fmt_hack, &t); if (len == 0 || s[0] == '\0') return NULL; |