Skip to content

Commit 0860f3e

Browse files
author
Mirela Chirica
committed
Cellular: Removed not used variable
1 parent 865a504 commit 0860f3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

features/cellular/framework/AT/ATHandler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,8 +749,7 @@ int32_t ATHandler::read_int()
749749
}
750750

751751
errno = 0;
752-
char *endptr;
753-
long result = std::strtol(buff, &endptr, 10);
752+
long result = std::strtol(buff, NULL, 10);
754753
if ((result == LONG_MIN || result == LONG_MAX) && errno == ERANGE) {
755754
return -1; // overflow/underflow
756755
}

0 commit comments

Comments
 (0)