# HG changeset patch # User Florian Quze # Date 1271436417 0 # Node ID 4e5cfb6ad4711625160205a1a43c46553bfbf0c7 # Parent b983db2b01f5c0494cfb5bc3898fedb390af3bcb 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 diff -r b983db2b01f5 -r 4e5cfb6ad471 libpurple/util.c --- 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); }