aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/os/os2/process.odin5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/os/os2/process.odin b/core/os/os2/process.odin
index c90e3add2..98995981b 100644
--- a/core/os/os2/process.odin
+++ b/core/os/os2/process.odin
@@ -407,11 +407,9 @@ process_exec :: proc(
{
stdout_b: [dynamic]byte
stdout_b.allocator = allocator
- defer stdout = stdout_b[:]
stderr_b: [dynamic]byte
stderr_b.allocator = allocator
- defer stderr = stderr_b[:]
buf: [1024]u8 = ---
@@ -450,6 +448,9 @@ process_exec :: proc(
}
}
}
+
+ stdout = stdout_b[:]
+ stderr = stderr_b[:]
}
if err != nil {