From: jsg Date: Wed, 14 Oct 2015 13:59:31 +0000 (+0000) Subject: Init a variable in the recently added carp_vhe_match() function clang X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=20dea8a8f65b66d3658635b092bd7a8cbf6e4565;p=openbsd Init a variable in the recently added carp_vhe_match() function clang and mpi believe could be used uninitialised. ok mpi@ --- diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index c703c8d707c..206fe7e4b5f 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.275 2015/10/05 19:05:09 uebayasi Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.276 2015/10/14 13:59:31 jsg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -1483,7 +1483,7 @@ carp_vhe_match(struct carp_softc *sc, uint8_t *ena) { struct carp_vhost_entry *vhe; struct srpl_iter i; - int match; + int match = 0; if (sc->sc_balancing == CARP_BAL_ARP) { SRPL_FOREACH(vhe, &sc->carp_vhosts, &i, vhost_entries) {