From 8e7da9464a847820adff261907885ac5770ac81a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 23 Oct 2007 15:10:48 +0000 Subject: [PATCH] Read callback should return 0 when no more data left --- tests/libtest/lib508.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)