changeset 28181: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 3bc638342316
children 7e40fef28347
files pidgin/gtkutils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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",