# HG changeset patch # User Mark Doliner # Date 1252010292 0 # Node ID 5ceac3a20b932069d382e3c717b963d3cbe146ef # Parent 3bc638342316ce1fed71cf624af62125d258b94f GError needs to be initialized to NULL. I can't help but think that this is a poor API. It's bug prone. diff -r 3bc638342316 -r 5ceac3a20b93 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Thu Sep 03 20:35:27 2009 +0000 +++ b/pidgin/gtkutils.c Thu Sep 03 20:38:12 2009 +0000 @@ -3746,7 +3746,7 @@ char *temp_file = user_data; gchar *contents; gsize length; - GError *error; + GError *error = NULL; if (!g_file_get_contents(temp_file, &contents, &length, &error)) { purple_debug_error("gtkutils", "Unable to read contents of %s: %s\n",