diff --git a/src/flb_pal.c b/src/flb_pal.c index 35c33e17f68..ba5aa226e4c 100644 --- a/src/flb_pal.c +++ b/src/flb_pal.c @@ -63,12 +63,7 @@ int flb_strerror_r(int errnum, char *buf, size_t buflen) return strerror_r(errnum, buf, buflen); #endif #elif defined(FLB_HAVE_STRERROR_S) - int ret; - - ret = (int) strerror_s(buf, (rsize_t)buflen, (errno_t)errnum); - if (0 != ret) { - ret = ERANGE; - } + return (int) strerror_s(buf, (rsize_t)buflen, (errno_t)errnum); #endif } #endif