Fix invalid memory access in unit-tests

This commit is contained in:
Maxime Coste 2020-03-04 12:07:58 +11:00
parent aad4612387
commit 610be9ac20

View File

@ -178,7 +178,7 @@ UnitTest test_json_parser{[]()
}
{
String big_nested_array = {"", max_parsing_depth*2+2};
String big_nested_array{' ', CharCount{max_parsing_depth*2+2}};
for (size_t i = 0; i < max_parsing_depth+1; i++)
{
big_nested_array[i] = '[';