easy.c: curl_easy_getinfo() fix va_start/va_end matching

This commit is contained in:
Yang Tse 2013-07-24 16:45:30 +02:00
parent 8c1e3bb713
commit 50a74be125

View File

@ -616,12 +616,16 @@ CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...)
{
va_list arg;
void *paramp;
CURLcode ret;
struct SessionHandle *data = (struct SessionHandle *)curl;
va_start(arg, info);
paramp = va_arg(arg, void *);
return Curl_getinfo(data, info, paramp);
ret = Curl_getinfo(data, info, paramp);
va_end(arg);
return ret;
}
/*