Skip to content
Snippets Groups Projects
Commit 79300cdc authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

return 0 not -1 at end of data!

parent a9591ad1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment