skin_client: added handling routine when proxy_addr has empty string
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Sun, 19 Jul 2015 04:17:39 +0000 (13:17 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 20 Jul 2015 07:56:52 +0000 (16:56 +0900)
Change-Id: I5fffda62b7bc53d3f38c5c04698d9c65f18eb52b
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/src/skin/maruskin_client.c

index 1230b23..9691ec1 100644 (file)
@@ -136,11 +136,11 @@ static void *run_skin_client(void *arg)
     }
 
     /* network */
-    gchar const* proxy_addr = NULL;
+    const char *proxy_addr = NULL;
     int proxy_addr_len = 0;
 
     const char *http_proxy = get_http_proxy_addr();
-    if (http_proxy == NULL) {
+    if (!http_proxy || !g_strcmp0("", http_proxy)) {
         proxy_addr = g_strdup_printf("%s= %s=",
                 OPT_PROXY_ADDR, OPT_PROXY_PORT);
         proxy_addr_len = (int)strlen(proxy_addr);