zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 09e4fc4dcf180860314c278a594d994f49a9769d (tree)
parent 772793c004e387bd37c0cd3b7f849936e7fdae4c
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed,  3 Sep 2025 18:30:40 -0700

std.zon.parse: fix not initializing array sentinel

Diffstat:
Mlib/std/zon/parse.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/std/zon/parse.zig b/lib/std/zon/parse.zig @@ -786,6 +786,7 @@ const Parser = struct { elem.* = try self.parseExpr(array_info.child, nodes.at(@intCast(i))); } + if (array_info.sentinel()) |s| result[result.len] = s; return result; }