From: Roy Marples Date: Fri, 6 May 2016 20:09:09 +0000 (+0000) Subject: Fix a bogus clang analyzer warning on BSD by moving an assignment slightly higher up. X-Git-Tag: v6.11.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be315919fa4ca9cb38861ce5c29abd0f32543092;p=thirdparty%2Fdhcpcd.git Fix a bogus clang analyzer warning on BSD by moving an assignment slightly higher up. --- diff --git a/ipv6.c b/ipv6.c index 520ddcf3..a22f2e11 100644 --- a/ipv6.c +++ b/ipv6.c @@ -1208,8 +1208,8 @@ ipv6_addlinklocal(struct interface *ifp) if (ap == NULL) return -1; + dadcounter = 0; if (ifp->options->options & DHCPCD_SLAACPRIVATE) { - dadcounter = 0; nextslaacprivate: if (ipv6_makestableprivate(&ap->addr, &ap->prefix, ap->prefix_len, ifp, &dadcounter) == -1)