Fix va_list warning

This commit is contained in:
Pan7 2015-07-30 17:09:51 +02:00
parent 017af35969
commit 8fddf5d6cd

View file

@ -217,11 +217,14 @@ static size_t CL_cURL_CallbackWrite(void *buffer, size_t size, size_t nmemb,
return size*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; CURLcode result;
va_list args;
va_start(args, option);
result = qcurl_easy_setopt(curl, option, args); result = qcurl_easy_setopt(curl, option, args);
va_end(args);
if(result != CURLE_OK) { if(result != CURLE_OK) {
Com_DPrintf("qcurl_easy_setopt failed: %s\n", qcurl_easy_strerror(result)); Com_DPrintf("qcurl_easy_setopt failed: %s\n", qcurl_easy_strerror(result));
} }