$OpenBSD: patch-servers_groupwise_e-gw-item_c,v 1.1 2006/01/06 00:10:41 pvalchev Exp $
--- servers/groupwise/e-gw-item.c.orig	Thu Jan  5 12:39:13 2006
+++ servers/groupwise/e-gw-item.c	Thu Jan  5 12:41:18 2006
@@ -2757,8 +2757,8 @@ e_gw_item_set_calendar_item_elements (EG
 
 	/*attachments*/
 	if (priv->attach_list) {
-		soup_soap_message_start_element (msg, "attachments", NULL, NULL) ;
 		GSList *al ;
+		soup_soap_message_start_element (msg, "attachments", NULL, NULL) ;
 		for (al = priv->attach_list ; al != NULL ;  al = al->next) {
 			EGwItemAttachment *attachment = (EGwItemAttachment *)al->data ;
 			add_attachment_to_soap_message (attachment, msg) ;
@@ -2825,8 +2825,8 @@ e_gw_item_append_to_soap_message (EGwIte
 
 		/*attachments*/
 		if (priv->attach_list) {
-			soup_soap_message_start_element (msg, "attachments", NULL, NULL) ;
 			GSList *al ;
+			soup_soap_message_start_element (msg, "attachments", NULL, NULL) ;
 			for (al = priv->attach_list ; al != NULL ;  al = al->next) {
 				EGwItemAttachment *attachment = (EGwItemAttachment *)al->data ;
 				add_attachment_to_soap_message (attachment, msg) ;
