Skip to content

Commit cde0cbd

Browse files
committed
ci: fix failing tests-sanitize-address-clang step for vlib/toml/tests/spaced_keys_test.v
1 parent b3287f8 commit cde0cbd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vlib/toml/parser/parser.v

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,7 @@ pub fn (mut p Parser) double_array_of_tables(mut table map[string]ast.Value) ? {
928928
nm = &(table[first.str()] as map[string]ast.Value)
929929
} else {
930930
util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'implicit allocation of map for `$first` in dotted key `$dotted_key`.')
931-
new := map[string]ast.Value{}
932-
nm = &new
931+
nm = &map[string]ast.Value{}
933932
// We register this implicit allocation as *explicit* to be able to catch
934933
// special cases like:
935934
// https://github.com/BurntSushi/toml-test/blob/576db852/tests/invalid/table/array-implicit.toml

0 commit comments

Comments
 (0)