Add errno=0 before call.
This commit is contained in:
parent
613eb25545
commit
b99d9ea258
|
@ -60,6 +60,7 @@ long strtonum(const char *restrict s, int base) {
|
|||
p--;
|
||||
}
|
||||
|
||||
errno = 0;
|
||||
found = strtol(p, &num, base);
|
||||
if (errno) {
|
||||
goto value_error;
|
||||
|
|
Loading…
Reference in a new issue