Skip to content

Commit 45431f1

Browse files
committed
bugfix:comparison of pointer with integer zero(on ubuntu 22.04)
1 parent babe753 commit 45431f1

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)