[evolution-patches] Patch for Exchange connector
- From: Sushma Rai <rsushma novell com>
- To: Evolution Patches <evolution-patches lists ximian com>
- Cc: Sarfraaz Ahmed <asarfraaz novell com>
- Subject: [evolution-patches] Patch for Exchange connector
- Date: Thu, 24 Feb 2005 16:50:01 +0530
Hi,
Small patch which removes unwanted memory allocation.
Please review.
-Sushma.
Index: lib/e2k-autoconfig.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/lib/e2k-autoconfig.c,v
retrieving revision 1.10
diff -u -p -r1.10 e2k-autoconfig.c
--- lib/e2k-autoconfig.c 10 Feb 2005 13:27:38 -0000 1.10
+++ lib/e2k-autoconfig.c 24 Feb 2005 11:10:27 -0000
@@ -1504,9 +1504,9 @@ validate (const char *owa_url, char *use
}
}
- *host = g_strdup (ac->pf_server);
+ *host = ac->pf_server;
if (ac->gc_server)
- *ad_server = g_strdup (ac->gc_server);
+ *ad_server = ac->gc_server;
return valid;
}
Index: camel/camel-exchange-provider.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/camel/camel-exchange-provider.c,v
retrieving revision 1.14
diff -u -p -r1.14 camel-exchange-provider.c
--- camel/camel-exchange-provider.c 10 Feb 2005 12:57:46 -0000 1.14
+++ camel/camel-exchange-provider.c 24 Feb 2005 11:10:39 -0000
@@ -150,9 +150,8 @@ exchange_validate_user_cb (CamelURL *cam
valid = e2k_validate_user (owa_url, camel_url->user,
&host, &ad_server, remember_password);
- camel_url_set_host(camel_url, valid?host:NULL);
+ camel_url_set_host(camel_url, valid?host:"");
camel_url_set_param(camel_url, "ad_server", valid?ad_server:NULL);
- g_free(host);
return valid;
}
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.265
diff -u -p -r1.265 ChangeLog
--- ChangeLog 20 Feb 2005 06:57:46 -0000 1.265
+++ ChangeLog 24 Feb 2005 11:12:54 -0000
@@ -1,3 +1,9 @@
+1005-02-24 Sushma Rai <rsushma novell com>
+
+ * lib/e2k-autoconfig.c (validate):
+ * camel/camel-exchange-provider.c (exchange_validate_user_cb): Removed
+ unnecessary memory allocation.
+
2005-02-20 Sushma Rai <rsushma novell com>
* addressbook/e-book-backend-gal.c (func_is_or_begins_with): Allowing
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]