summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1997-01-15 03:27:14 +0000
committerkstailey <kstailey@openbsd.org>1997-01-15 03:27:14 +0000
commit7e3b427089110dbb8be1d31aa261173d94f3d0c9 (patch)
tree1f16884b2fc8a2e002a5e6da81da03b84a863a6c
parentprevent warning: (diff)
downloadwireguard-openbsd-7e3b427089110dbb8be1d31aa261173d94f3d0c9.tar.xz
wireguard-openbsd-7e3b427089110dbb8be1d31aa261173d94f3d0c9.zip
prevent warning:
in_pcb.c:182: warning: `old' might be used uninitialized in this function
-rw-r--r--sys/netinet/in_pcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 630a8282d7e..3a74cd535f2 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.12 1996/08/24 04:56:39 deraadt Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.13 1997/01/15 03:27:14 kstailey Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -179,7 +179,7 @@ in_pcbbind(v, nam)
inp->inp_laddr = sin->sin_addr;
}
if (lport == 0) {
- u_int16_t first, last, old;
+ u_int16_t first, last, old = 0;
int count;
int loopcount = 0;