summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-04 10:34:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-04 10:34:49 +0000
commit560b523618b5f10c22aaa4338b82edcef9df9e97 (patch)
tree0ebc3d13427fdff03116682521842e10b35c0114 /lib/libc/net
parent8c060ded7d6316b1e9c26d6217f540b6cd06a161 (diff)
init net_entry properly
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/getnetnamadr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/net/getnetnamadr.c b/lib/libc/net/getnetnamadr.c
index 59a4d09aecd..a562d4bf4ac 100644
--- a/lib/libc/net/getnetnamadr.c
+++ b/lib/libc/net/getnetnamadr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getnetnamadr.c,v 1.7 1997/04/14 04:25:02 deraadt Exp $ */
+/* $OpenBSD: getnetnamadr.c,v 1.8 1997/08/04 10:34:48 deraadt Exp $ */
/*
* Copyright (c) 1997, Jason Downs. All rights reserved.
@@ -77,7 +77,7 @@ static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93";
static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03";
static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $";
#else
-static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.7 1997/04/14 04:25:02 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.8 1997/08/04 10:34:48 deraadt Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -250,7 +250,7 @@ getnetbyaddr(net, net_type)
querybuf buf;
char qbuf[MAXDNAME];
in_addr_t net2;
- struct netent *net_entry;
+ struct netent *net_entry = NULL;
char lookups[MAXDNSLUS];
int i;
@@ -333,7 +333,7 @@ getnetbyname(net)
int anslen;
querybuf buf;
char qbuf[MAXDNAME];
- struct netent *net_entry;
+ struct netent *net_entry = NULL;
char lookups[MAXDNSLUS];
int i;