summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2000-03-15 15:04:54 +0000
committerjlemon <jlemon@FreeBSD.org>2000-03-15 15:04:54 +0000
commit859f9435c8481af36c26c6f8ed4be8952635325e (patch)
treef3688a1891c9c620285e9bd884944a2d00ac7ae8 /lib/libc
parentafe650499c19e5cf369008f2a4667cddaabe00f6 (diff)
downloadFreeBSD-src-859f9435c8481af36c26c6f8ed4be8952635325e.zip
FreeBSD-src-859f9435c8481af36c26c6f8ed4be8952635325e.tar.gz
Fix uninitialized variable.
Submitted by: tanimura
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/name6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c
index 35039e0..e87f40f 100644
--- a/lib/libc/net/name6.c
+++ b/lib/libc/net/name6.c
@@ -840,7 +840,7 @@ _files_ghbyaddr(const void *addr, int addrlen, int af, int *errp)
static struct hostent *
_nis_ghbyname(const char *name, int af, int *errp)
{
- struct hostent *hp;
+ struct hostent *hp = NULL;
if (af == AF_INET) {
hp = _gethostbynisname(name, af);
OpenPOWER on IntegriCloud