From cf0f6729e78dce46c14c3e20b7be2195577a7af9 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 19 Oct 2011 21:18:52 -0700 Subject: Silenced a compiler warning about an unused variable --- tests/libtest/lib554.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/libtest/lib554.c b/tests/libtest/lib554.c index ba42bc482..d20429d91 100644 --- a/tests/libtest/lib554.c +++ b/tests/libtest/lib554.c @@ -40,8 +40,6 @@ struct WriteThis { static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp) { - struct WriteThis *pooh = (struct WriteThis *)userp; - #ifdef LIB587 (void)ptr; (void)size; @@ -50,6 +48,8 @@ static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp) return CURL_READFUNC_ABORT; #else + struct WriteThis *pooh = (struct WriteThis *)userp; + if(size*nmemb < 1) return 0; -- cgit v1.2.3