Skip to content

Commit b99d9ea

Browse files
committed
Add errno=0 before call.
1 parent 613eb25 commit b99d9ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

py/strtonum.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ long strtonum(const char *restrict s, int base) {
6060
p--;
6161
}
6262

63+
errno = 0;
6364
found = strtol(p, &num, base);
6465
if (errno) {
6566
goto value_error;

0 commit comments

Comments
 (0)