# HG changeset patch # User mow # Date 1267370232 0 # Node ID 6c61c246506bfb7976a6ac9eed6fc9624a2d219a # Parent 3a2aff95781670e211a8fa2cae24b325d356c4eb Fix a small issue with strptime strptime do not initialize all fields. So the undefined fields could end in crash later on. diff -r 3a2aff957816 -r 6c61c246506b src/exif-common.c --- a/src/exif-common.c Sat Feb 27 23:31:07 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);