mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 02:34:05 +00:00
Don't append to buffer if nothing was read
This commit is contained in:
@@ -405,10 +405,10 @@ process_exec :: proc(
|
||||
defer stderr = stderr_b[:]
|
||||
|
||||
buf: [1024]u8 = ---
|
||||
n: int
|
||||
|
||||
|
||||
stdout_done, stderr_done, has_data: bool
|
||||
for err == nil && (!stdout_done || !stderr_done) {
|
||||
n := 0
|
||||
|
||||
if !stdout_done {
|
||||
has_data, err = pipe_has_data(stdout_r)
|
||||
|
||||
Reference in New Issue
Block a user