diff options
Diffstat (limited to 'lib/base64.c')
-rw-r--r-- | lib/base64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/base64.c b/lib/base64.c index 302d49885..912aaf050 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -137,7 +137,7 @@ size_t Curl_base64_decode(const char *src, unsigned char **outptr) * * Returns the length of the newly created base64 string. The third argument * is a pointer to an allocated area holding the base64 data. If something - * went wrong, -1 is returned. + * went wrong, 0 is returned. * */ size_t Curl_base64_encode(struct SessionHandle *data, @@ -265,7 +265,7 @@ int main(int argc, argv_item_t argv[], char **envp) handle = curl_easy_init(); if(handle == NULL) { fprintf(stderr, "Error: curl_easy_init failed\n"); - return 0; + return 1; } #endif data = (unsigned char *)suck(&dataLen); @@ -305,7 +305,7 @@ int main(int argc, argv_item_t argv[], char **envp) struct SessionHandle *handle = curl_easy_init(); if(handle == NULL) { fprintf(stderr, "Error: curl_easy_init failed\n"); - return 0; + return 1; } #endif |