mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
fix number of arguments preallocation in zig jit subcommand
crash repo: `zig std 1 2 3 4 5` (in a debug build)
This commit is contained in:
parent
05b185811e
commit
3eeb70540d
1 changed files with 1 additions and 1 deletions
|
|
@ -5402,7 +5402,7 @@ fn jitCmd(
|
|||
defer thread_pool.deinit();
|
||||
|
||||
var child_argv: std.ArrayListUnmanaged([]const u8) = .{};
|
||||
try child_argv.ensureUnusedCapacity(arena, args.len + 2);
|
||||
try child_argv.ensureUnusedCapacity(arena, args.len + 4);
|
||||
|
||||
// We want to release all the locks before executing the child process, so we make a nice
|
||||
// big block here to ensure the cleanup gets run when we extract out our argv.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue