summaryrefslogtreecommitdiff
path: root/lib/base64.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-03-13 17:14:57 +0000
committerSteve Holme <steve_holme@hotmail.com>2016-03-13 17:14:57 +0000
commit0e16de870f959c9199884d5233ecc046b7d3a03d (patch)
tree54f305fc652870b78d833b714333a238bc41b4e5 /lib/base64.c
parent9eb158821f4b65718c449046fbf1b9268ca6e48d (diff)
downloadcurl-0e16de870f959c9199884d5233ecc046b7d3a03d.tar.gz
base64: Use 'CURLcode result' for curl result codes
Diffstat (limited to 'lib/base64.c')
-rw-r--r--lib/base64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/base64.c b/lib/base64.c
index 2212115b8..04cf2c9db 100644
--- a/lib/base64.c
+++ b/lib/base64.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -173,7 +173,7 @@ static CURLcode base64_encode(const char *table64,
const char *inputbuff, size_t insize,
char **outptr, size_t *outlen)
{
- CURLcode error;
+ CURLcode result;
unsigned char ibuf[3];
unsigned char obuf[4];
int i;
@@ -199,10 +199,10 @@ static CURLcode base64_encode(const char *table64,
* not the host encoding. And we can't change the actual input
* so we copy it to a buffer, translate it, and use that instead.
*/
- error = Curl_convert_clone(data, indata, insize, &convbuf);
- if(error) {
+ result = Curl_convert_clone(data, indata, insize, &convbuf);
+ if(result) {
free(output);
- return error;
+ return result;
}
if(convbuf)