From cde0cbd5ad5c501d9f19a1ad19888bb5b154c48d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 11 Dec 2021 19:03:47 +0200 Subject: [PATCH] ci: fix failing `tests-sanitize-address-clang` step for vlib/toml/tests/spaced_keys_test.v --- vlib/toml/parser/parser.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/toml/parser/parser.v b/vlib/toml/parser/parser.v index f0bb7874e2..a1d09f5c2b 100644 --- a/vlib/toml/parser/parser.v +++ b/vlib/toml/parser/parser.v @@ -928,8 +928,7 @@ pub fn (mut p Parser) double_array_of_tables(mut table map[string]ast.Value) ? { nm = &(table[first.str()] as map[string]ast.Value) } else { util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'implicit allocation of map for `$first` in dotted key `$dotted_key`.') - new := map[string]ast.Value{} - nm = &new + nm = &map[string]ast.Value{} // We register this implicit allocation as *explicit* to be able to catch // special cases like: // https://github.com/BurntSushi/toml-test/blob/576db852/tests/invalid/table/array-implicit.toml