summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/macos.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/macos.c')
-rw-r--r--libs/libcurl/src/macos.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/libs/libcurl/src/macos.c b/libs/libcurl/src/macos.c
index d8f4fe1d7c..f9396e0360 100644
--- a/libs/libcurl/src/macos.c
+++ b/libs/libcurl/src/macos.c
@@ -34,21 +34,19 @@
CURLcode Curl_macos_init(void)
{
- {
- /*
- * The automagic conversion from IPv4 literals to IPv6 literals only
- * works if the SCDynamicStoreCopyProxies system function gets called
- * first. As Curl currently does not support system-wide HTTP proxies, we
- * therefore do not use any value this function might return.
- *
- * This function is only available on macOS and is not needed for
- * IPv4-only builds, hence the conditions for defining
- * CURL_MACOS_CALL_COPYPROXIES in curl_setup.h.
- */
- CFDictionaryRef dict = SCDynamicStoreCopyProxies(NULL);
- if(dict)
- CFRelease(dict);
- }
+ /*
+ * The automagic conversion from IPv4 literals to IPv6 literals only
+ * works if the SCDynamicStoreCopyProxies system function gets called
+ * first. As Curl currently does not support system-wide HTTP proxies, we
+ * therefore do not use any value this function might return.
+ *
+ * This function is only available on macOS and is not needed for
+ * IPv4-only builds, hence the conditions for defining
+ * CURL_MACOS_CALL_COPYPROXIES in curl_setup.h.
+ */
+ CFDictionaryRef dict = SCDynamicStoreCopyProxies(NULL);
+ if(dict)
+ CFRelease(dict);
return CURLE_OK;
}