pidgin: b71c7d50: Zero the struct tm used for purple_str_t...

datallah at pidgin.im datallah at pidgin.im
Mon May 2 11:56:21 EDT 2011


----------------------------------------------------------------------
Revision: b71c7d50a44b91ee81c9a3f3409941a5457d5e90
Parent:   474f8f7211e1130ebfe546a1f9c2295ca6fb0555
Author:   datallah at pidgin.im
Date:     05/02/11 11:33:10
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b71c7d50a44b91ee81c9a3f3409941a5457d5e90

Changelog: 

Zero the struct tm used for purple_str_to_time().

This fixes parsing of date string without times, etc.

Changes against parent 474f8f7211e1130ebfe546a1f9c2295ca6fb0555

  patched  libpurple/util.c

-------------- next part --------------
============================================================
--- libpurple/util.c	be4a91e070c6e30f7d015e5a7c94790fa1ff3fe9
+++ libpurple/util.c	d07498da19c3116e3337d9778b7b3bda49353e2b
@@ -713,6 +713,8 @@ purple_str_to_time(const char *timestamp
 
 	g_return_val_if_fail(timestamp != NULL, 0);
 
+	memset(&t, 0, sizeof(struct tm));
+
 	str = timestamp;
 
 	/* Strip leading whitespace */


More information about the Commits mailing list