diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-10-14 13:59:32 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-10-14 13:59:32 +0000 |
commit | 360aeaadf09b79faec0964ff32413e702a787bcc (patch) | |
tree | e38301170c4a11c4fbf3e90579291f16bf79ca2a | |
parent | 1340f235dc6ab3f36a65571d9d5b930285cf20ca (diff) |
Init a variable in the recently added carp_vhe_match() function clang
and mpi believe could be used uninitialised.
ok mpi@
-rw-r--r-- | sys/netinet/ip_carp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |