netapi32: Remove always true conditional expression (PVS-Studio).
This commit is contained in:
parent
57fc6e58f1
commit
7883bb072b
|
@ -560,8 +560,7 @@ static UCHAR NetBTinetResolve(const UCHAR name[NCBNAMSZ],
|
|||
|
||||
if ((host = gethostbyname(toLookup)) != NULL)
|
||||
{
|
||||
for (i = 0; ret == NRC_GOODRET && host->h_addr_list &&
|
||||
host->h_addr_list[i]; i++)
|
||||
for (i = 0; host->h_addr_list && host->h_addr_list[i]; i++)
|
||||
;
|
||||
if (host->h_addr_list && host->h_addr_list[0])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue