We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865a504 commit 0860f3eCopy full SHA for 0860f3e
features/cellular/framework/AT/ATHandler.cpp
@@ -749,8 +749,7 @@ int32_t ATHandler::read_int()
749
}
750
751
errno = 0;
752
- char *endptr;
753
- long result = std::strtol(buff, &endptr, 10);
+ long result = std::strtol(buff, NULL, 10);
754
if ((result == LONG_MIN || result == LONG_MAX) && errno == ERANGE) {
755
return -1; // overflow/underflow
756
0 commit comments