summaryrefslogtreecommitdiff
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-05-19 14:59:00 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-05-19 14:59:00 +0300
commit389faf93b7bec960b89af6fde2196be269198559 (patch)
tree5c9c1eba3ff3940d1215010a27d3e841b8e872f6 /zebra/connected.c
parent2794d40202c392e676b8f77ac423adad8ede0545 (diff)
zebra: fix possible uninitialized value
Found by Coverity. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'zebra/connected.c')
-rw-r--r--zebra/connected.c2
1 files changed, 1 insertions, 1 deletions
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);