summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPan7 <panter@gmx.net>2015-07-30 17:09:51 +0200
committerTim Angus <tim@ngus.net>2016-04-07 11:04:21 +0100
commit4cbb09b086c876d18aedd13f679b1ca071e89f62 (patch)
tree04300b7c97dfb5de22fe211805264c6ad0d7b38a /src
parent4865b932d3e2c0dad8a7a53374726c149e9c247a (diff)
Fix va_list warning
Diffstat (limited to 'src')
-rw-r--r--src/client/cl_curl.c5
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));
}