Code Review
/
apps
/
app-afb-helpers-submodule.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
523bcf9
)
Fix GCC < v7 warning on maybe unitialized variable
99/13799/1
author
Romain Forlot
<romain.forlot@iot.bzh>
Tue, 17 Apr 2018 14:44:46 +0000
(16:44 +0200)
committer
Romain Forlot
<romain.forlot@iot.bzh>
Tue, 17 Apr 2018 14:44:46 +0000
(16:44 +0200)
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>
wrap-json.c
patch
|
blob
|
history
diff --git
a/wrap-json.c
b/wrap-json.c
index
e87035e
..
46a4d67
100644
(file)
--- 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;