changeset 121:8b58990f5ee9

ensure struct tm cleared before use.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 18 Jul 2008 07:47:30 +0900
parents b47bc7b89de6
children a37dd74c8355
files pidgin-twitter.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;