summaryrefslogtreecommitdiffstats
path: root/wrap-json.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-17 16:44:46 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-04-17 16:44:46 +0200
commite396c20882ff644b06a93256eadf860bfb71756e (patch)
tree328c599c956540b2e1367a7e0a484259a5ba208f /wrap-json.c
parent523bcf9c0b44214130ef619bda4bd1be50abfbcf (diff)
Fix GCC < v7 warning on maybe unitialized variable
Initialization done under a switch case statement within a "for" loop which throw warning with GCC v6. Change-Id: I47b51598cc68943bab6f98bd87b7ba6f40caeafc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'wrap-json.c')
-rw-r--r--wrap-json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wrap-json.c b/wrap-json.c
index e87035e..46a4d67 100644
--- a/wrap-json.c
+++ b/wrap-json.c
@@ -103,8 +103,8 @@ static int encode_base64(
int pad,
int url)
{
- uint16_t u16;
- uint8_t u8;
+ uint16_t u16 = 0;
+ uint8_t u8 = 0;
size_t in, out, rlen, n3, r3, iout, nout;
int iw;
char *result, c;