# HG changeset patch # User Yoshiki Yazawa # Date 1216334850 -32400 # Node ID 8b58990f5ee969354ac49a897648c0c5240629c1 # Parent b47bc7b89de639b929efb0000b34bc941b9b73e0 ensure struct tm cleared before use. diff -r b47bc7b89de6 -r 8b58990f5ee9 pidgin-twitter.c --- a/pidgin-twitter.c Fri Jul 18 01:46:51 2008 +0900 +++ b/pidgin-twitter.c Fri Jul 18 07:47:30 2008 +0900 @@ -310,6 +310,7 @@ /* read time stamp */ struct tm res; + memset(&res, 0x00, sizeof(struct tm)); strptime(str, "%a %b %d %T %z %Y", &res); tzset(); st->time = mktime(&res) - timezone;