From 16b77f6cea24332fffb75b6dcccb76f59565ed44 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 12 Jul 2021 16:03:56 -0400 Subject: gcc 11.x fixes In decode_base64 in wrap-json.c, initialize u16 as gcc now seems to miss that it will be initialized on the first loop iteration. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray Change-Id: Ic4a1a87ec64bd725d5a3f6e2d2a3901348b608f6 --- wrap-json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap-json.c b/wrap-json.c index 0e0c31c..68dfe52 100644 --- a/wrap-json.c +++ b/wrap-json.c @@ -200,7 +200,7 @@ static int decode_base64( size_t *decodedlen, int url) { - uint16_t u16; + uint16_t u16 = 0; uint8_t u8, *result; size_t in, out, iin; char c; -- cgit 1.2.3-korg