mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 12:33:00 +00:00
Merge pull request #6801 from spholz/spholz-patch-1
network: fix ternary operator in Socket::SendTo
This commit is contained in:
commit
ffe553edbf
|
@ -570,7 +570,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, const std::vector<u8>& message,
|
|||
ASSERT(flags == 0);
|
||||
|
||||
const sockaddr* to = nullptr;
|
||||
const int tolen = addr ? 0 : sizeof(sockaddr);
|
||||
const int tolen = addr ? sizeof(sockaddr) : 0;
|
||||
sockaddr host_addr_in;
|
||||
|
||||
if (addr) {
|
||||
|
|
Loading…
Reference in a new issue