projects
/
geeqie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a small issue with strptime
[geeqie.git]
/
src
/
exif-common.c
diff --git
a/src/exif-common.c
b/src/exif-common.c
index
84ebef5
..
f87d141
100644
(file)
--- a/
src/exif-common.c
+++ b/
src/exif-common.c
@@
-207,6
+207,7
@@
static gchar *exif_build_formatted_DateTime(ExifData *exif)
}
/* Convert the stuff into a tm struct */
+ memset(&tm, 0, sizeof(tm)); /* Uh, strptime could let garbage in tm! */
if (text && strptime(text, "%Y:%m:%d %H:%M:%S", &tm))
{
buflen = strftime(buf, sizeof(buf), "%x %X", &tm);