mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Initialize some of the host-ent data in case windoze doesn't; this fixes a purify warning
This commit is contained in:
parent
241c2ffd1b
commit
6836703ca8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user