Add errno=0 before call.

This commit is contained in:
Damien George 2014-01-15 23:08:33 +00:00
parent 613eb25545
commit b99d9ea258
1 changed files with 1 additions and 0 deletions

View File

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