reset n before stderr path too

This commit is contained in:
Laytan Laats committed 2024-10-05 11:26:23 +02:00
1 parent f61996fd6f
commit c21e62ddb4
2 files changed
+2

No files matched your search

+1
View File
@@ -426,6 +426,7 @@ process_exec :: proc(
}
if err == nil && !stderr_done {
n = 0
has_data, err = pipe_has_data(stderr_r)
if has_data {
n, err = read(stderr_r, buf[:])