# HG changeset patch # User Klaus Ethgen # Date 1267370232 0 # Node ID d812280fcc6b5601ff83f46533089881b6e9725d # Parent 4bd5a199d369f89e4094ba04a0e77bcc1b89b665 Fix a small issue with strptime strptime do not initialize all fields. So the undefined fields could end in crash later on. diff -r 4bd5a199d369 -r d812280fcc6b src/exif-common.c --- a/src/exif-common.c Sat Feb 27 20:34:54 2010 +0000 +++ b/src/exif-common.c Sun Feb 28 15:17:12 2010 +0000 @@ -207,6 +207,7 @@ } /* 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);