summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/lib/base64.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-23 14:19:57 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-10-23 14:20:56 (GMT)
commit5112a76a175f9be8faf55d64f520977ba5d838b6 (patch)
treebf576c76add72d215aabdcf4cec690e4f064af53 /Utilities/cmcurl/lib/base64.c
parent887ba2dc5ff2668542f43a1fb2d8a6e7cc2ef105 (diff)
parent031002456381245f88f64b0826798b1e249e8e39 (diff)
downloadCMake-5112a76a175f9be8faf55d64f520977ba5d838b6.zip
CMake-5112a76a175f9be8faf55d64f520977ba5d838b6.tar.gz
CMake-5112a76a175f9be8faf55d64f520977ba5d838b6.tar.bz2
Merge topic 'update-curl'
0310024563 curl: Update build within CMake to account for 7.61 changes b9d1107790 curl: Backport to work with CMake 3.1 again e9e8dcee6b Merge branch 'upstream-curl' into update-curl 18812a9c3d curl 2018-09-04 (432eb5f5) ded211ae46 curl: Update script to get curl 7.61.1 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2509
Diffstat (limited to 'Utilities/cmcurl/lib/base64.c')
-rw-r--r--Utilities/cmcurl/lib/base64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Utilities/cmcurl/lib/base64.c b/Utilities/cmcurl/lib/base64.c
index 204a227..6370e4c 100644
--- a/Utilities/cmcurl/lib/base64.c
+++ b/Utilities/cmcurl/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)) {