# HG changeset patch # User Daniel Atallah # Date 1304350390 0 # Node ID 1e1b598c725e5d6d4a0814b5b5aefd18c5346458 # Parent a5384cd9b3320d7ff9d377fb68560182308882ea Zero the struct tm used for purple_str_to_time(). This fixes parsing of date string without times, etc. diff -r a5384cd9b332 -r 1e1b598c725e libpurple/util.c --- a/libpurple/util.c Mon May 02 14:01:43 2011 +0000 +++ b/libpurple/util.c Mon May 02 15:33:10 2011 +0000 @@ -713,6 +713,8 @@ g_return_val_if_fail(timestamp != NULL, 0); + memset(&t, 0, sizeof(struct tm)); + str = timestamp; /* Strip leading whitespace */