diff options
author | Scott Murray <scott.murray@konsulko.com> | 2021-07-12 16:03:56 -0400 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-07-13 21:11:17 +0000 |
commit | 16b77f6cea24332fffb75b6dcccb76f59565ed44 (patch) | |
tree | 257be1178729a16428f33c06e8545be632f81a8d /wrap-json.c | |
parent | 6fb187bdbcc5d5dd5bb432b047d629bf5d842d97 (diff) |
gcc 11.x fixesneedlefish_13.93.0needlefish/13.93.0marlin_12.93.0marlin_12.92.0marlin_12.91.0marlin_12.90.1marlin/12.93.0marlin/12.92.0marlin/12.91.0marlin/12.90.113.93.012.93.012.92.012.91.012.90.1
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
Diffstat (limited to 'wrap-json.c')
-rw-r--r-- | wrap-json.c | 2 |
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; |