From: Roy Marples Date: Sat, 16 May 2015 21:39:56 +0000 (+0000) Subject: Add an assert to fix an impossible clang analyzer condition X-Git-Tag: v6.9.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=665f367d534db8aa829d4bb6affc4652cb5703b3;p=thirdparty%2Fdhcpcd.git Add an assert to fix an impossible clang analyzer condition --- diff --git a/ipv4.c b/ipv4.c index e5e3a602..3c872a36 100644 --- a/ipv4.c +++ b/ipv4.c @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -885,6 +886,8 @@ ipv4_finalisert(struct interface *ifp) { const struct dhcp_state *state = D_CSTATE(ifp); + assert(state != NULL); + /* Find any freshly added routes, such as the subnet route. * We do this because we cannot rely on recieving the kernel * notification right now via our link socket. */