aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/libtest/lib554.c4
1 files changed, 2 insertions, 2 deletions
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;