aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-23 15:10:48 +0000
committerYang Tse <yangsita@gmail.com>2007-10-23 15:10:48 +0000
commit8e7da9464a847820adff261907885ac5770ac81a (patch)
treedb7a309d5b762449a5d43e910ab9e65eb4e8cb23
parente550df675a6e6d3b1f55a779df92c9b7b9747842 (diff)
Read callback should return 0 when no more data left
-rw-r--r--tests/libtest/lib508.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib508.c b/tests/libtest/lib508.c
index cc240db5c..ecbc41912 100644
--- a/tests/libtest/lib508.c
+++ b/tests/libtest/lib508.c
@@ -31,7 +31,7 @@ static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
return 1; /* we return 1 byte at a time! */
}
- return -1; /* no more data left to deliver */
+ return 0; /* no more data left to deliver */
}
int test(char *URL)