netapi32: Remove always true conditional expression (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2015-01-07 12:06:36 +01:00 committed by Alexandre Julliard
parent 57fc6e58f1
commit 7883bb072b
1 changed files with 1 additions and 2 deletions

View File

@ -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])
{