mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Fix -Wmaybe-uninitialized in test/c/std/json
This commit is contained in:
1 parent
2ca0ef7bd5
commit
60e928f7c9
1 file changed
+1
-1
+1
-1
@@ -1307,7 +1307,7 @@ test_wuffs_json_decode_quirk_allow_backslash_x() {
|
|||||||
if ((vbc == WUFFS_BASE__TOKEN__VBC__STRING) &&
|
if ((vbc == WUFFS_BASE__TOKEN__VBC__STRING) &&
|
||||||
(vbd ==
|
(vbd ==
|
||||||
WUFFS_BASE__TOKEN__VBD__STRING__CONVERT_1_DST_4_SRC_BACKSLASH_X)) {
|
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(
|
size_t n = wuffs_base__hexadecimal__decode4(
|
||||||
wuffs_base__make_slice_u8(&b[0], 8),
|
wuffs_base__make_slice_u8(&b[0], 8),
|
||||||
wuffs_base__make_slice_u8(src_slice.ptr + src_index, token_length));
|
wuffs_base__make_slice_u8(src_slice.ptr + src_index, token_length));
|
||||||
|
|||||||
Reference in new issue
Block a user