$OpenBSD: patch-addressbook_backends_groupwise_e-book-backend-groupwise_c,v 1.1.1.1 2004/06/25 16:21:32 marcm Exp $
--- addressbook/backends/groupwise/e-book-backend-groupwise.c.orig	Fri Jun 11 08:00:38 2004
+++ addressbook/backends/groupwise/e-book-backend-groupwise.c	Thu Jun 24 23:53:16 2004
@@ -456,9 +456,9 @@ populate_birth_date (EContact *contact, 
 {
 	EGwItem *item;
   
-	item = E_GW_ITEM (data);
 	char *value ;
 	EContactDate *date;
+	item = E_GW_ITEM (data);
 	value = e_gw_item_get_field_value (item, "birthday");
  	if (value) {
 		date =  e_contact_date_from_string (value);
@@ -539,9 +539,9 @@ set_emails_in_gw_item (EGwItem *item, gp
 	GList *email_list;
 	EContact *contact;
 	char *email;
-	contact = E_CONTACT (data);
 	int i;
 
+	contact = E_CONTACT (data);
 	email_list = NULL;
 	for (i =0 ; i < 3; i++) {
 		email = e_contact_get (contact, email_fields[i]);
@@ -609,9 +609,9 @@ static void 
 populate_full_name (EContact *contact, gpointer data)
 {
 	EGwItem *item;
-	item = E_GW_ITEM(data);
 	FullName  *full_name ;
 	char *full_name_string;
+	item = E_GW_ITEM(data);
 
 	full_name = e_gw_item_get_full_name (item);
 	if (full_name) {
