initialize min_dist

This commit is contained in:
kardel 2012-02-01 21:21:25 +00:00
parent cb314bfae7
commit 9b98de2bc5

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntp_io.c,v 1.8 2012/02/01 20:48:01 kardel Exp $ */
/* $NetBSD: ntp_io.c,v 1.9 2012/02/01 21:21:25 kardel Exp $ */
/*
* ntp_io.c - input/output routines for ntpd. The socket-opening code
@ -3801,7 +3801,9 @@ findclosestinterface(
sockaddr_u addr_dist;
sockaddr_u min_dist;
winner = NULL;
min_dist = *addr;
for (ep = ep_list; ep != NULL; ep = ep->elink) {
if (ep->ignore_packets ||