mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-06 00:31:14 +01:00
strtonum: Do not abort on EINVAL from strtoi()
With musl libc strtoimax(".", ...) returns EINVAL. Closes: !28 Signed-off-by: Guillem Jover <guillem@hadrons.org>
This commit is contained in:
parent
ee63bca525
commit
e848f5aa29
@ -58,6 +58,7 @@ strtonum(const char *nptr, long long minval, long long maxval,
|
||||
return rv;
|
||||
case ECANCELED:
|
||||
case ENOTSUP:
|
||||
case EINVAL:
|
||||
goto out;
|
||||
case ERANGE:
|
||||
if (*eptr)
|
||||
|
Loading…
Reference in New Issue
Block a user