diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-10-19 21:18:52 -0700 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-10-19 21:18:52 -0700 |
commit | cf0f6729e78dce46c14c3e20b7be2195577a7af9 (patch) | |
tree | 70e3da578cd8a7be4acabc7cea7c1de467f776e0 /tests/libtest | |
parent | 8036da870c5b413a83097b3486c58d13910a471a (diff) |
Silenced a compiler warning about an unused variable
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/lib554.c | 4 |
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; |