evolution-data-server r8353 - trunk/libedataserverui



Author: sragavan
Date: Fri Jan 11 17:08:36 2008
New Revision: 8353
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8353&view=rev

Log:
2008-01-11  Srinivasa Ragavan  <sragavan novell com>

	** Fix for bug #508438

	* e-passwords.c: (ep_get_password_keyfile): (ep_get_password_keyfile):
	Extract error only if it is there.



Modified:
   trunk/libedataserverui/ChangeLog
   trunk/libedataserverui/e-passwords.c

Modified: trunk/libedataserverui/e-passwords.c
==============================================================================
--- trunk/libedataserverui/e-passwords.c	(original)
+++ trunk/libedataserverui/e-passwords.c	Fri Jan 11 17:08:36 2008
@@ -353,8 +353,10 @@
 	if (error == NULL)
 		ep_key_file_save ();
 	else {
-		g_warning ("%s", error->message);
-		g_error_free (error);
+		if (error) {
+			g_warning ("%s", error->message);
+			g_error_free (error);
+		}
 	}
 
 	g_free (group);
@@ -762,8 +764,10 @@
 		msg->password = ep_password_decode (password);
 		g_free (password);
 	} else {
-		g_warning ("%s", error->message);
-		g_error_free (error);
+		if (error) {
+			g_warning ("%s", error->message);
+			g_error_free (error);
+		}
 	}
 
 	g_free (group);



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