mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
error(3) now doesn't print an error if supplied errno=0.
This commit is contained in:
parent
158909033e
commit
c5302df277
1 changed files with 2 additions and 1 deletions
|
@ -183,7 +183,8 @@ namespace Maxsi
|
|||
vfprintf(stderr, format, list);
|
||||
va_end(list);
|
||||
|
||||
fprintf(stderr, ": %s\n", strerror(errnum));
|
||||
if ( errnum ) { fprintf(stderr, ": %s", strerror(errnum)); }
|
||||
fprintf(stderr, "\n");
|
||||
if ( status ) { exit(status); }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue