return 0 not -1 at end of data!

This commit is contained in:
Daniel Stenberg 2008-04-12 08:35:04 +00:00
parent a9591ad1b7
commit 79300cdcd9
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,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 main(void)