[evolution-data-server/account-mgmt] online-accounts: Fix	autodiscovery.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [evolution-data-server/account-mgmt] online-accounts: Fix	autodiscovery.
- Date: Wed, 30 May 2012 17:55:39 +0000 (UTC)
commit e26553bda64095bf2899db321d9047814dcb9d2f
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed May 30 10:17:43 2012 -0400
    online-accounts: Fix autodiscovery.
 modules/online-accounts/goaewsclient.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/modules/online-accounts/goaewsclient.c b/modules/online-accounts/goaewsclient.c
index 8445735..d387b4d 100644
--- a/modules/online-accounts/goaewsclient.c
+++ b/modules/online-accounts/goaewsclient.c
@@ -121,18 +121,18 @@ ews_autodiscover_parse_protocol (xmlNode *node,
 	gboolean got_oab_url = FALSE;
 
 	for (node = node->children; node; node = node->next) {
-		xmlChar *prop;
+		xmlChar *content;
 
 		if (ews_check_node (node, "ASUrl")) {
-			prop = xmlGetProp (node, node->name);
-			data->as_url = g_strdup ((gchar *) prop);
-			xmlFree (prop);
+			content = xmlNodeGetContent (node);
+			data->as_url = g_strdup ((gchar *) content);
+			xmlFree (content);
 			got_as_url = TRUE;
 
 		} else if (ews_check_node (node, "OABUrl")) {
-			prop = xmlGetProp (node, node->name);
-			data->oab_url = g_strdup ((gchar *) prop);
-			xmlFree (prop);
+			content = xmlNodeGetContent (node);
+			data->oab_url = g_strdup ((gchar *) content);
+			xmlFree (content);
 			got_oab_url = TRUE;
 		}
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]