network: fix ternary operator in Socket::SendTo

This commit is contained in:
spholz 2021-08-02 20:12:12 +02:00 committed by GitHub
parent f56d0db5bd
commit e71f78d04c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, const std::vector<u8>& message,
ASSERT(flags == 0); ASSERT(flags == 0);
const sockaddr* to = nullptr; const sockaddr* to = nullptr;
const int tolen = addr ? 0 : sizeof(sockaddr); const int tolen = addr ? sizeof(sockaddr) : 0;
sockaddr host_addr_in; sockaddr host_addr_in;
if (addr) { if (addr) {