[OpenWrt-Devel] [PATCH 2/4] b64_encode(): fixed input[] not initialized warn under gcc 4.4.5

Bachtin, Dmitri dbachtin at init-ka.de
Wed Sep 9 03:23:58 EDT 2015


Signed-off-by: Dmitri Bachtin <dbachtin at init-ka.de>
---
 base64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
 
-- 
1.7.2.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list