1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2012-03-01 16:42:13 +01:00
parent 158909033e
commit c5302df277

View file

@ -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); }
}