diff options
Diffstat (limited to 'nss/hosts.c')
-rw-r--r-- | nss/hosts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nss/hosts.c b/nss/hosts.c index 3b9bd20..6a271e1 100644 --- a/nss/hosts.c +++ b/nss/hosts.c @@ -74,6 +74,7 @@ static nss_status_t read_hostent( int i; int readaf; size_t bufptr=0; + memset(result,0,sizeof(struct hostent)); /* read the host entry */ READ_BUF_STRING(fp,result->h_name); READ_BUF_STRINGLIST(fp,result->h_aliases); |