Initialize some of the host-ent data in case windoze doesn't; this fixes a purify warning

This commit is contained in:
kipp%netscape.com 1998-10-13 22:32:26 +00:00
parent 241c2ffd1b
commit 6836703ca8

View File

@ -106,6 +106,9 @@ DNSCacheEntry::Init(void* aContext, const char* aHost, PRFileDesc* fd)
if ((NULL == mHost) || (NULL == mHostEnt) || (NULL == mSockets)) {
return NS_ERROR_FAILURE;
}
mHostEnt->h_name = NULL;
mHostEnt->h_aliases = NULL;
mHostEnt->h_addr_list = NULL;
return NS_OK;
}