summaryrefslogtreecommitdiffstats
path: root/lib/base64.c
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@cool.haxx.se>2018-09-04 21:49:50 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-22 12:24:16 (GMT)
commit18812a9c3d395b368d8f3d85394b346472c8e858 (patch)
treeab391413091d9538c9ee6b25ab3ff8e54f9cbac0 /lib/base64.c
parentd431136e029c652f5913bcebeaab3b9236b114c4 (diff)
downloadCMake-18812a9c3d395b368d8f3d85394b346472c8e858.zip
CMake-18812a9c3d395b368d8f3d85394b346472c8e858.tar.gz
CMake-18812a9c3d395b368d8f3d85394b346472c8e858.tar.bz2
curl 2018-09-04 (432eb5f5)
Code extracted from: https://github.com/curl/curl.git at commit 432eb5f5c254ee8383b2522ce597c9219877923e (curl-7_61_1).
Diffstat (limited to 'lib/base64.c')
-rw-r--r--lib/base64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/base64.c b/lib/base64.c
index 204a227..6370e4c 100644
--- a/lib/base64.c
+++ b/lib/base64.c
@@ -49,13 +49,12 @@ static size_t decodeQuantum(unsigned char *dest, const char *src)
unsigned long i, x = 0;
for(i = 0, s = src; i < 4; i++, s++) {
- unsigned long v = 0;
-
if(*s == '=') {
x = (x << 6);
padding++;
}
else {
+ unsigned long v = 0;
p = base64;
while(*p && (*p != *s)) {