prevent warning:
authorkstailey <kstailey@openbsd.org>
Wed, 15 Jan 1997 03:27:14 +0000 (03:27 +0000)
committerkstailey <kstailey@openbsd.org>
Wed, 15 Jan 1997 03:27:14 +0000 (03:27 +0000)
in_pcb.c:182: warning: `old' might be used uninitialized in this function

sys/netinet/in_pcb.c

index 630a828..3a74cd5 100644 (file)
@@ -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;