[evolution-data-server] Bug 584425 – Crashed when a google address book is created on solaris OS
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Bug 584425 – Crashed when a google address book is created on solaris OS
- Date: Mon, 15 Jun 2009 06:39:38 -0400 (EDT)
commit dfc5eaa0c7b3f941d962d72b74257fc2ab305377
Author: Norman <zhichao wang sun com>
Date: Mon Jun 15 06:34:45 2009 -0400
Bug 584425 â?? Crashed when a google address book is created on solaris OS
libedataserver/e-proxy.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/libedataserver/e-proxy.c b/libedataserver/e-proxy.c
index 313cf13..40b4edf 100644
--- a/libedataserver/e-proxy.c
+++ b/libedataserver/e-proxy.c
@@ -600,13 +600,21 @@ ep_set_proxy (GConfClient *client,
proxy_server = gconf_client_get_string (client, RIGHT_KEY (HTTP_HOST), NULL);
proxy_port = gconf_client_get_int (client, RIGHT_KEY (HTTP_PORT), NULL);
- uri_http = g_strdup_printf ("http://%s:%d", proxy_server, proxy_port);
+ if (proxy_server != NULL)
+ uri_http = g_strdup_printf (
+ "http://%s:%d", proxy_server, proxy_port);
+ else
+ uri_http = NULL;
g_free (proxy_server);
d(g_print ("ep_set_proxy: uri_http: %s\n", uri_http));
proxy_server = gconf_client_get_string (client, RIGHT_KEY (HTTPS_HOST), NULL);
proxy_port = gconf_client_get_int (client, RIGHT_KEY (HTTPS_PORT), NULL);
- uri_https = g_strdup_printf ("https://%s:%d", proxy_server, proxy_port);
+ if (proxy_server != NULL)
+ uri_https = g_strdup_printf (
+ "https://%s:%d", proxy_server, proxy_port);
+ else
+ uri_https = NULL;
g_free (proxy_server);
d(g_print ("ep_set_proxy: uri_http: %s\n", uri_http));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]