diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/cl_curl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/cl_curl.c b/src/client/cl_curl.c index 2288b7cf..572ed550 100644 --- a/src/client/cl_curl.c +++ b/src/client/cl_curl.c @@ -218,11 +218,14 @@ static size_t CL_cURL_CallbackWrite(void *buffer, size_t size, size_t nmemb, return size*nmemb; } -CURLcode qcurl_easy_setopt_warn(CURL *curl, CURLoption option, va_list args) +CURLcode qcurl_easy_setopt_warn(CURL *curl, CURLoption option, ...) { CURLcode result; + va_list args; + va_start(args, option); result = qcurl_easy_setopt(curl, option, args); + va_end(args); if(result != CURLE_OK) { Com_DPrintf("qcurl_easy_setopt failed: %s\n", qcurl_easy_strerror(result)); } |