From: kstailey Date: Wed, 15 Jan 1997 03:27:14 +0000 (+0000) Subject: prevent warning: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7e3b427089110dbb8be1d31aa261173d94f3d0c9;p=openbsd prevent warning: in_pcb.c:182: warning: `old' might be used uninitialized in this function --- 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;