diff options
Diffstat (limited to 'std/child_process.zig')
| -rw-r--r-- | std/child_process.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/child_process.zig b/std/child_process.zig index 1268f72c37..2a2a294e9b 100644 --- a/std/child_process.zig +++ b/std/child_process.zig @@ -523,7 +523,7 @@ pub const ChildProcess = struct { // to match posix semantics const app_name = x: { if (self.cwd) |cwd| { - const resolved = try fs.path.resolve(self.allocator, [][]const u8{ cwd, self.argv[0] }); + const resolved = try fs.path.resolve(self.allocator, [_][]const u8{ cwd, self.argv[0] }); defer self.allocator.free(resolved); break :x try cstr.addNullByte(self.allocator, resolved); } else { @@ -546,7 +546,7 @@ pub const ChildProcess = struct { var it = mem.tokenize(PATH, ";"); while (it.next()) |search_path| { - const joined_path = try fs.path.join(self.allocator, [][]const u8{ search_path, app_name }); + const joined_path = try fs.path.join(self.allocator, [_][]const u8{ search_path, app_name }); defer self.allocator.free(joined_path); const joined_path_w = try unicode.utf8ToUtf16LeWithNull(self.allocator, joined_path); |
