Skip to content

Commit

Permalink
Solve pointer comparison error with gcc 11
Browse files Browse the repository at this point in the history
  • Loading branch information
lebarsfa committed Feb 12, 2023
1 parent 62e0fe3 commit df104a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/sdk/src/arch/linux/net_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ u_result SocketAddress::getAddressAsString(char * buffer, size_t buffersize) con

break;
}
return ans<=0?RESULT_OPERATION_FAIL:RESULT_OK;
return ans==NULL?RESULT_OPERATION_FAIL:RESULT_OK;
}


Expand Down

0 comments on commit df104a3

Please sign in to comment.