From d66a89f010247f20a9803f2bef1c3dc1d7d706b9 Mon Sep 17 00:00:00 2001 From: "Bachtin, Dmitri" Date: Wed, 9 Sep 2015 09:23:58 +0200 Subject: [PATCH] b64_encode(): fixed input[] not initialized warn under gcc 4.4.5 Signed-off-by: Dmitri Bachtin --- base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;