Skip to content

Commit 029b6a3

Browse files
committed
fix can't build on ubuntu 22.04 with ROS2(humble)
1 parent babe753 commit 029b6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/arch/linux/net_socket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ u_result SocketAddress::getAddressAsString(char * buffer, size_t buffersize) con
167167

168168
break;
169169
}
170-
return ans<=0?RESULT_OPERATION_FAIL:RESULT_OK;
170+
return ans==NULL?RESULT_OPERATION_FAIL:RESULT_OK;
171171
}
172172

173173

0 commit comments

Comments
 (0)