From: Nickolay V. Shmyrev Date: Tue, 11 Oct 2005 21:09:09 +0000 (+0000) Subject: Check if date is invalid. Fix for bug 318134. X-Git-Tag: EVINCE_0_5_0~117 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;ds=sidebyside;h=03602a3aae5df139f87416797abb776e3522f29f;hp=74e72e5fe94b080c975203c893d38353fd2e0db4;p=evince.git Check if date is invalid. Fix for bug 318134. * properties/ev-properties-view.c: (ev_properties_view_format_date): Check if date is invalid. Fix for bug 318134. --- diff --git a/ChangeLog b/ChangeLog index a9f699ba..7a8d1356 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-10-12 Nickolay V. Shmyrev + + * properties/ev-properties-view.c: + (ev_properties_view_format_date): + + Check if date is invalid. Fix for bug 318134. + 2005-10-02 Wouter Bolsterlee * shell/ev-window-title.c: diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index 669421fd..fdf5cf73 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;