]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix initialised vrf_id value never read
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 22 Jan 2018 12:46:20 +0000 (13:46 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
this is a static analysis performed by c-lang scan-build tool that
demonstrated this issue. This commit is handling the fix.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/interface.c

index 74ffdee31fd017104b49eff4c3b47b16ccf4061a..e919d9f08f77e1da7893bf729a37d8606f048da4 100644 (file)
@@ -1414,7 +1414,7 @@ DEFUN (show_interface_name_vrf,
        int idx_ifname = 2;
        int idx_name = 4;
        struct interface *ifp;
-       vrf_id_t vrf_id = VRF_DEFAULT;
+       vrf_id_t vrf_id;
 
        interface_update_stats();