changeset 29738:4e5cfb6ad471

util: Fix a crash in purple_utf8_strftime. The issue is that the GError is re-used about 10 lines later and I'm pretty sure there are some rules about GError's always being initialized to NULL before use. Fixes http://crash-stats.instantbird.com/report/index/fac36bac-4bc2-41d9-b05d-fdcaa2100411 committer: Paul Aurich <paul@darkrain42.org>
author Florian Quèze <florian@instantbird.org>
date Fri, 16 Apr 2010 16:46:57 +0000
parents b983db2b01f5
children 933c8251e036 67024624f59b
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Fri Apr 16 07:35:11 2010 +0000
+++ b/libpurple/util.c	Fri Apr 16 16:46:57 2010 +0000
@@ -586,6 +586,7 @@
 	{
 		purple_debug_error("util", "Format conversion failed in purple_utf8_strftime(): %s\n", err->message);
 		g_error_free(err);
+		err = NULL;
 		locale = g_strdup(format);
 	}