pidgin: 276fd6dd: Keep valgrind happy by zeroing out the t...
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Wed Apr 23 11:05:50 EDT 2008
-----------------------------------------------------------------
Revision: 276fd6dd7c954f0c25682fb748259a6d78ec073c
Ancestor: 1ab9e9dc145f63255641fbbb9e5a6df1ecf761e9
Author: nosnilmot at pidgin.im
Date: 2008-04-23T14:58:55
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/276fd6dd7c954f0c25682fb748259a6d78ec073c
Modified files:
libpurple/log.c
ChangeLog:
Keep valgrind happy by zeroing out the tm struct before we stuff our
numbers in it and hand it off to mktime()
-------------- next part --------------
============================================================
--- libpurple/log.c aadd0b8cc71ffd069a06984b1eda95ac01da3b43
+++ libpurple/log.c 85b55eebdfc924a7f6b12e8bb4f0fa5b2c3ef363
@@ -1758,6 +1758,7 @@ static GList *old_logger_list(PurpleLogT
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 */
More information about the Commits
mailing list