Skip to content

Commit 5f37567

Browse files
committed
fix: warning: 'port_start' may be used uninitialized in this function
Signed-off-by: Oleg Kokorin <[email protected]>
1 parent 3508a88 commit 5f37567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ nsapi_size_or_error_t GEMALTO_CINTERION_CellularStack::socket_recvfrom_impl(Cell
444444
if (address) {
445445
char *ip_start = ip_address;
446446
char *ip_stop;
447-
char *port_start;
447+
char *port_start = (char *)0xDEADBEEF;
448448
if (_stack_type == IPV6_STACK) {
449449
ip_start++; // skip '['
450450
ip_stop = strchr(ip_address, ']');

0 commit comments

Comments
 (0)