diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-07-19 08:50:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-19 08:50:01 -0400 |
| commit | d1a85fe40d93d31f7f0daf54912a159fcabfaddc (patch) | |
| tree | e947467da69832a04e10e24334e4fbc06285884d /zebra/if_netlink.c | |
| parent | 06a5959f10f30740dcdf7d09a9c77f1504fc3328 (diff) | |
| parent | 2e1cc436791c3d2e39af9ffbd8194e9e4abc7795 (diff) | |
Merge pull request #2608 from pacovn/PVS-Studio_dead_code_1
eigrpd lib pimd zebra: dead code (PVS-Studio)
Diffstat (limited to 'zebra/if_netlink.c')
| -rw-r--r-- | zebra/if_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 5c84219418..8f6e31cfa8 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -986,7 +986,7 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup) if (tb[IFA_LABEL]) label = (char *)RTA_DATA(tb[IFA_LABEL]); - if (ifp && label && strcmp(ifp->name, label) == 0) + if (label && strcmp(ifp->name, label) == 0) label = NULL; /* Register interface address to the interface. */ |
