aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-07-24 16:45:30 +0200
committerYang Tse <yangsita@gmail.com>2013-07-24 16:46:26 +0200
commit50a74be12542b84a3edcebc2603cabb7ae2daa44 (patch)
treeb067ec973dc0d2d6662795ae1a87107aaa36aa6e /lib
parent8c1e3bb7139bc960dab78a8cc537c082a98733e4 (diff)
easy.c: curl_easy_getinfo() fix va_start/va_end matching
Diffstat (limited to 'lib')
-rw-r--r--lib/easy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c
index d84ecf541..a7c0a677a 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -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;
}
/*