You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07: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