From 1f69a708fb71947c83ff71c52ba01b9f5093f021 Mon Sep 17 00:00:00 2001 From: James Urquhart Date: Sun, 27 Nov 2016 17:58:34 +0000 Subject: [PATCH] Fix ret assignment --- Engine/source/platform/platformNet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Engine/source/platform/platformNet.cpp b/Engine/source/platform/platformNet.cpp index 3bee694dd..80131a4fa 100644 --- a/Engine/source/platform/platformNet.cpp +++ b/Engine/source/platform/platformNet.cpp @@ -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) {