summaryrefslogtreecommitdiff
path: root/process-posix.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-18 12:23:28 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-18 12:23:28 -0500
commite239b66691200163c1983b645c28b34825f32ea4 (patch)
treebad2b6a2f685462504898855880f8e84fbd69a28 /process-posix.c
parent14811a586d77ab9a1fa8bef360250992aead55d1 (diff)
:build working on windows
Diffstat (limited to 'process-posix.c')
-rw-r--r--process-posix.c2
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) {