mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
Added an empty win32_cleanup for non-windows systems to prevent compiler
warnings, changed the Curl_open() call as the second argument was never used anyway
This commit is contained in:
parent
1603f64771
commit
e32641d412
@ -119,8 +119,9 @@ static CURLcode win32_init(void)
|
||||
}
|
||||
/* The Windows Sockets DLL is acceptable. Proceed. */
|
||||
#else
|
||||
/* These functions exist merely to prevent compiler warnings */
|
||||
static CURLcode win32_init(void) { return CURLE_OK; }
|
||||
#define win32_cleanup()
|
||||
static void win32_cleanup(void) { }
|
||||
#endif
|
||||
|
||||
|
||||
@ -179,7 +180,7 @@ CURL *curl_easy_init(void)
|
||||
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||
|
||||
/* We use curl_open() with undefined URL so far */
|
||||
res = Curl_open((CURL **)&data, NULL);
|
||||
res = Curl_open((CURL **)&data);
|
||||
if(res != CURLE_OK)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user