diff options
Diffstat (limited to 'py/strtonum.c')
-rw-r--r-- | py/strtonum.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/strtonum.c b/py/strtonum.c index 02c1506683..48a746603f 100644 --- a/py/strtonum.c +++ b/py/strtonum.c @@ -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; |