From 18b99f6ae62e8eb94e1d719aa163707e78cefe0c Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 19 May 2021 14:59:00 +0300 Subject: [PATCH] zebra: fix possible uninitialized value Found by Coverity. Signed-off-by: Igor Ryzhov --- zebra/connected.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/connected.c b/zebra/connected.c index 883334d509..d110ccf6dd 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -277,7 +277,7 @@ void connected_up(struct interface *ifp, struct connected *ifc) * resolve to the same network and mask */ for (ALL_LIST_ELEMENTS_RO(ifp->connected, cnode, c)) { - struct prefix cp; + struct prefix cp = {0}; PREFIX_COPY(&cp, CONNECTED_PREFIX(c)); apply_mask(&cp); -- 2.39.5