Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/properties/ev-properties-view.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-10-11 21:09:09 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-10-11 21:09:09 (GMT)
commit03602a3aae5df139f87416797abb776e3522f29f (patch)
tree283aa9edc499d9c8136499b9c7a1198b789eaa70 /properties/ev-properties-view.c
parent74e72e5fe94b080c975203c893d38353fd2e0db4 (diff)
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.
Diffstat (limited to 'properties/ev-properties-view.c')
-rw-r--r--properties/ev-properties-view.c2
1 files changed, 1 insertions, 1 deletions
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;