From: Gunnar Beutner Date: Wed, 13 Jan 2016 07:33:27 +0000 (+0100) Subject: Fix compiler warning X-Git-Tag: v2.5.0~627 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de11ef704a73d2c9e1539490b2ffc7f1e45d77ba;p=icinga2 Fix compiler warning fixes #10956 --- diff --git a/lib/remote/base64.cpp b/lib/remote/base64.cpp index f818b8bb7..3f0a587d7 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);