mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
Add errno=0 before call.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user