commit ab6317d32bdc004e50cc4750ba9a89c9d81e05df (tree)
parent f3bd177723293d11680f3cccaa2f5798a5625667
Author: Alex Kladov <aleksey.kladov@gmail.com>
Date: Sat, 17 Feb 2024 22:31:48 +0000
std: fix copy-paste typo in spawnWindows
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig
@@ -720,7 +720,7 @@ pub const ChildProcess = struct {
g_hChildStd_OUT_Wr = null;
},
}
- errdefer if (self.stdin_behavior == StdIo.Pipe) {
+ errdefer if (self.stdout_behavior == StdIo.Pipe) {
windowsDestroyPipe(g_hChildStd_OUT_Rd, g_hChildStd_OUT_Wr);
};
@@ -740,7 +740,7 @@ pub const ChildProcess = struct {
g_hChildStd_ERR_Wr = null;
},
}
- errdefer if (self.stdin_behavior == StdIo.Pipe) {
+ errdefer if (self.stderr_behavior == StdIo.Pipe) {
windowsDestroyPipe(g_hChildStd_ERR_Rd, g_hChildStd_ERR_Wr);
};