From: Bachtin, Dmitri Date: Wed, 9 Sep 2015 07:23:58 +0000 (+0200) Subject: b64_encode(): fixed input[] not initialized warn under gcc 4.4.5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d66a89f010247f20a9803f2bef1c3dc1d7d706b9;p=oweals%2Flibubox.git b64_encode(): fixed input[] not initialized warn under gcc 4.4.5 Signed-off-by: Dmitri Bachtin --- diff --git a/base64.c b/base64.c index b6f8bf3..4186ce8 100644 --- a/base64.c +++ b/base64.c @@ -140,7 +140,7 @@ int b64_encode(const void *_src, size_t srclength, const unsigned char *src = _src; char *target = dest; size_t datalength = 0; - u_char input[3]; + u_char input[3] = {0}; u_char output[4]; int i;