diff options
Diffstat (limited to 'main/network.c')
-rw-r--r-- | main/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/network.c b/main/network.c index 7b6bfda022..e5754f9378 100644 --- a/main/network.c +++ b/main/network.c @@ -126,7 +126,7 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal) memset(&hints, '\0', sizeof(hints)); hints.ai_family = AF_UNSPEC; - if (n = getaddrinfo(host, NULL, &hints, &res)) { + if ((n = getaddrinfo(host, NULL, &hints, &res))) { php_error(E_WARNING, "php_network_getaddresses: getaddrinfo failed: %s", PHP_GAI_STRERROR(n)); return -1; } |