service: Enable clearing of proxy auto-config url
authorHenri Bragge <henri.bragge@ixonos.com>
Thu, 28 Jul 2011 15:22:44 +0000 (18:22 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Jul 2011 15:43:57 +0000 (17:43 +0200)
This could introduce a need to null-check values where this function
is used (src/dhcp.c, src/network.c, src/provider.c). However, src/dhcp.c
requires that URL can be cleared.

src/service.c

index 1939832..7e8a611 100644 (file)
@@ -2026,9 +2026,6 @@ int __connman_service_timeserver_remove(struct connman_service *service,
 void __connman_service_set_pac(struct connman_service *service,
                                        const char *pac)
 {
-       if (pac == NULL)
-               return;
-
        g_free(service->pac);
        service->pac = g_strdup(pac);
 }