X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=properties%2Fev-properties-view.c;h=fdf5cf7397b5dd6eb360fa929de91ba933af516b;hb=205c689a78e992d1ad3cf9223f7c95bf424dda94;hp=669421fdf8370815ba83b4a6bff7d9f3a7578cf8;hpb=0bdec82dd21f2f4f8794047356893af8323a4385;p=evince.git 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;