Fix -Wmaybe-uninitialized in test/c/std/json

This commit is contained in:
Nigel Tao committed 2020-03-24 14:04:41 +11:00
1 parent 2ca0ef7bd5
commit 60e928f7c9
1 file changed
+1 -1
+1 -1
View File
@@ -1307,7 +1307,7 @@ test_wuffs_json_decode_quirk_allow_backslash_x() {
if ((vbc == WUFFS_BASE__TOKEN__VBC__STRING) &&
(vbd ==
WUFFS_BASE__TOKEN__VBD__STRING__CONVERT_1_DST_4_SRC_BACKSLASH_X)) {
uint8_t b[8];
uint8_t b[8] = {0};
size_t n = wuffs_base__hexadecimal__decode4(
wuffs_base__make_slice_u8(&b[0], 8),
wuffs_base__make_slice_u8(src_slice.ptr + src_index, token_length));