# HG changeset patch # User Stu Tomlinson # Date 1208962735 0 # Node ID f2045aae33b8192d1191bbe4bdb820e63f832e3e # Parent 1e7713b5e068bd2cded827e07e3deee980424479 Keep valgrind happy by zeroing out the tm struct before we stuff our numbers in it and hand it off to mktime() diff -r 1e7713b5e068 -r f2045aae33b8 libpurple/log.c --- a/libpurple/log.c Wed Apr 23 14:56:30 2008 +0000 +++ b/libpurple/log.c Wed Apr 23 14:58:55 2008 +0000 @@ -1758,6 +1758,7 @@ lastoff = offset; g_snprintf(convostart, length, "%s", temp); + memset(&tm, 0, sizeof(tm)); sscanf(convostart, "%*s %s %d %d:%d:%d %d", month, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &tm.tm_year); /* Ugly hack, in case current locale is not English */