authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-03 18:30:40-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-20 18:33:00-07:00
log09e4fc4dcf180860314c278a594d994f49a9769d
treedb85fe176c807d86c8c175bdd1a9a3326e627a51
parent772793c004e387bd37c0cd3b7f849936e7fdae4c

std.zon.parse: fix not initializing array sentinel


1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/zon/parse.zig+1
...@@ -786,6 +786,7 @@ const Parser = struct {...@@ -786,6 +786,7 @@ const Parser = struct {
786786
787 elem.* = try self.parseExpr(array_info.child, nodes.at(@intCast(i)));787 elem.* = try self.parseExpr(array_info.child, nodes.at(@intCast(i)));
788 }788 }
789 if (array_info.sentinel()) |s| result[result.len] = s;
789 return result;790 return result;
790 }791 }
791792