Commit b99d9ea2 authored by Damien George's avatar Damien George
Browse files

Add errno=0 before call.

parent 613eb255
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment