Two signed array indicies that Coverity spots should be unsigned.
[p5sagit/p5-mst-13.2.git] / ext / Socket / Socket.xs
index 2650cac..48f30d9 100644 (file)
@@ -231,10 +231,7 @@ inet_aton(host)
        {
        struct in_addr ip_address;
        struct hostent * phe;
-       int ok =
-               (host != NULL) &&
-               (*host != '\0') &&
-               inet_aton(host, &ip_address);
+       int ok = (*host != '\0') && inet_aton(host, &ip_address);
 
        if (!ok && (phe = gethostbyname(host))) {
                Copy( phe->h_addr, &ip_address, phe->h_length, char );