diff options
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) { |