mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Fix ret assignment
This commit is contained in:
parent
2ed4978cb9
commit
1f69a708fb
1 changed files with 1 additions and 2 deletions
|
|
@ -1777,13 +1777,12 @@ Net::Error Net::stringToAddress(const char *addressString, NetAddress *address,
|
|||
if (!hostLookup && !hasInterface)
|
||||
return NeedHostLookup;
|
||||
|
||||
int ret = 0;
|
||||
struct addrinfo hint, *res = NULL;
|
||||
dMemset(&hint, 0, sizeof(hint));
|
||||
hint.ai_family = actualFamily;
|
||||
hint.ai_flags = hostLookup ? 0 : AI_NUMERICHOST;
|
||||
|
||||
if (ret = getaddrinfo(addressString, NULL, &hint, &res) == 0)
|
||||
if (getaddrinfo(addressString, NULL, &hint, &res) == 0)
|
||||
{
|
||||
if (actualFamily != AF_UNSPEC)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue