[PATCH] ws2_32: name is never NULL as array (Coverity)

Marcus Meissner marcus at jet.franken.de
Wed Feb 23 14:27:22 CST 2011


Hi,

CID 1727, if (name == NULL) is always true for char name[];

Ciao, Marcus
---
 dlls/ws2_32/tests/sock.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index d2f011f..ca72e68 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -2548,10 +2548,6 @@ static void test_gethostbyname_hack(void)
            he->h_addr_list[0][3]);
     }
 
-    /* No reason to test further with NULL hostname */
-    if(name == NULL)
-        return;
-
     if(strcmp(name, "localhost") == 0)
     {
         skip("hostname seems to be \"localhost\", skipping test.\n");
-- 
1.7.1



More information about the wine-patches mailing list