Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e36282f

Browse files
deyouslamtecWang DeYou
authored andcommitted
Modify the comparison type to NULL
1 parent 0556a58 commit e36282f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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 ((uintptr_t)ans)<=0?RESULT_OPERATION_FAIL:RESULT_OK;
170+
return ans==NULL?RESULT_OPERATION_FAIL:RESULT_OK;
171171
}
172172

173173

0 commit comments

Comments
 (0)