diff pidgin/gtkutils.c @ 28540:5ceac3a20b93

GError needs to be initialized to NULL. I can't help but think that this is a poor API. It's bug prone.
author Mark Doliner <mark@kingant.net>
date Thu, 03 Sep 2009 20:38:12 +0000
parents 07718e5eb8ce
children 321dd2830061
line wrap: on
line diff
--- 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",