std.zon.parse: fix not initializing array sentinel

This commit is contained in:
Andrew Kelley
2025-09-03 18:30:40 -07:00
committed by Alex Rønne Petersen
parent 8d5b651c3a
commit 582b96c361

View File

@@ -717,6 +717,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;
}