From 8798c342832efc35b234a9455dcc54b89299f92f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 13 Jan 2016 08:33:27 +0100 Subject: [PATCH] Fix compiler warning fixes #10956 --- lib/remote/base64.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/remote/base64.cpp b/lib/remote/base64.cpp index 7525a7059..74ed58380 100644 --- a/lib/remote/base64.cpp +++ b/lib/remote/base64.cpp @@ -53,8 +53,10 @@ String Base64::Decode(const String& input) char *outbuf = new char[input.GetLength()]; - size_t rc, len = 0; - while (rc = BIO_read(bio64, outbuf + len, input.GetLength() - len)) + size_t len = 0; + int rc; + + while ((rc = BIO_read(bio64, outbuf + len, input.GetLength() - len)) > 0) len += rc; String ret = String(outbuf, outbuf + len); -- 2.40.0