Mercurial > pidgin
changeset 22707:f2045aae33b8
Keep valgrind happy by zeroing out the tm struct before we stuff our
numbers in it and hand it off to mktime()
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Wed, 23 Apr 2008 14:58:55 +0000 |
| parents | 1e7713b5e068 |
| children | 9a810bee2ffd |
| files | libpurple/log.c |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 */
