ws2_32: name is never NULL as array (Coverity).
This commit is contained in:
parent
706b43f4dd
commit
ae0797150e
@ -2548,10 +2548,6 @@ static void test_gethostbyname_hack(void)
|
|||||||
he->h_addr_list[0][3]);
|
he->h_addr_list[0][3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No reason to test further with NULL hostname */
|
|
||||||
if(name == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if(strcmp(name, "localhost") == 0)
|
if(strcmp(name, "localhost") == 0)
|
||||||
{
|
{
|
||||||
skip("hostname seems to be \"localhost\", skipping test.\n");
|
skip("hostname seems to be \"localhost\", skipping test.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user