evolution-data-server r9606 - branches/gnome-2-24/camel/providers/groupwise



Author: mcrha
Date: Thu Sep 25 04:33:55 2008
New Revision: 9606
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9606&view=rev

Log:
2008-09-25  Milan Crha  <mcrha redhat com>

	** Part of fix for bug #337479

	* camel-groupwise-store.c: (groupwise_auth_loop):
	Do not use uninitialized variables.



Modified:
   branches/gnome-2-24/camel/providers/groupwise/ChangeLog
   branches/gnome-2-24/camel/providers/groupwise/camel-groupwise-store.c

Modified: branches/gnome-2-24/camel/providers/groupwise/camel-groupwise-store.c
==============================================================================
--- branches/gnome-2-24/camel/providers/groupwise/camel-groupwise-store.c	(original)
+++ branches/gnome-2-24/camel/providers/groupwise/camel-groupwise-store.c	Thu Sep 25 04:33:55 2008
@@ -180,7 +180,7 @@
 	CamelGroupwiseStorePrivate *priv = groupwise_store->priv;
 	gboolean authenticated = FALSE;
 	char *uri;
-	EGwConnectionErrors errors;
+	EGwConnectionErrors errors = {E_GW_CONNECTION_STATUS_INVALID_OBJECT, NULL};
 
 	if (priv->use_ssl && !g_str_equal (priv->use_ssl, "never")) 
 		uri = g_strconcat ("https://";, priv->server_name, ":", priv->port, "/soap", NULL);
@@ -222,7 +222,7 @@
 				service->url->passwd = NULL;
 				camel_exception_clear (ex);
 			} else {
-				camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, g_strdup (errors.description));
+				camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, errors.description ? errors.description : _("You must be working online to complete this operation"));
 				return FALSE;
 			}
 		} else



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