empathy r741 - trunk/libempathy-gtk



Author: xclaesse
Date: Tue Mar 11 09:27:40 2008
New Revision: 741
URL: http://svn.gnome.org/viewvc/empathy?rev=741&view=rev

Log:
Fix compilation and usage of GError


Modified:
   trunk/libempathy-gtk/empathy-ui-utils.c

Modified: trunk/libempathy-gtk/empathy-ui-utils.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ui-utils.c	(original)
+++ trunk/libempathy-gtk/empathy-ui-utils.c	Tue Mar 11 09:27:40 2008
@@ -1317,7 +1317,7 @@
 {
 	gchar    *real_url;
 	gboolean  res;
-	GError   *error;
+	GError   *error = NULL;
 
 	real_url = fixup_url (url);
 	if (real_url) {
@@ -1330,7 +1330,7 @@
 	if (!res) {
 		empathy_debug (DEBUG_DOMAIN, "Couldn't show URL %s: %s",
 			       url, error->message);
-		g_clear_error (error);
+		g_clear_error (&error);
 	}
 
 	g_free (real_url);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]