diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-18 12:23:28 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-18 12:23:28 -0500 |
commit | e239b66691200163c1983b645c28b34825f32ea4 (patch) | |
tree | bad2b6a2f685462504898855880f8e84fbd69a28 /process-posix.c | |
parent | 14811a586d77ab9a1fa8bef360250992aead55d1 (diff) |
:build working on windows
Diffstat (limited to 'process-posix.c')
-rw-r--r-- | process-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/process-posix.c b/process-posix.c index 9be7e10..6434f6e 100644 --- a/process-posix.c +++ b/process-posix.c @@ -43,7 +43,7 @@ bool process_exec(Process *proc, char const *program, char **argv) { } char const *process_geterr(Process *p) { - return p->error; + return *p->error ? p->error : NULL; } long long process_read(Process *proc, char *data, size_t size) { |