From: Norman Date: Mon, 15 Jun 2009 10:34:45 +0000 (-0400) Subject: Bug 584425 – Crashed when a google address book is created on solaris OS X-Git-Tag: upstream/3.7.4~3964 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfc5eaa0c7b3f941d962d72b74257fc2ab305377;p=platform%2Fupstream%2Fevolution-data-server.git Bug 584425 – Crashed when a google address book is created on solaris OS --- 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));