summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2021-07-12 16:03:56 -0400
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-07-13 21:11:17 +0000
commit16b77f6cea24332fffb75b6dcccb76f59565ed44 (patch)
tree257be1178729a16428f33c06e8545be632f81a8d
parent6fb187bdbcc5d5dd5bb432b047d629bf5d842d97 (diff)
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 <scott.murray@konsulko.com> Change-Id: Ic4a1a87ec64bd725d5a3f6e2d2a3901348b608f6
-rw-r--r--wrap-json.c2
1 files changed, 1 insertions, 1 deletions
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;