X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstring%2Fstrerror.c;h=8c9f8764b7b2eb45ed15d1f486671b258981e2b9;hp=59747f1d8491dc48b934dc398c2968d9f7f75500;hb=d7154dc8cd1b7d41d0d956b7310e59d794f1a59f;hpb=da0d02da53b8a309d85ae19e6b9e5ff1cde9c4a5 diff --git a/functions/string/strerror.c b/functions/string/strerror.c index 59747f1..8c9f876 100644 --- a/functions/string/strerror.c +++ b/functions/string/strerror.c @@ -13,7 +13,7 @@ /* TODO: Doing this via a static array is not the way to do it. */ char * strerror( int errnum ) { - if ( errnum == 0 || errnum >= _PDCLIB_ERRNO_MAX ) + if ( errnum >= _PDCLIB_ERRNO_MAX ) { return (char *)"Unknown error"; }