]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Initialize variable
authorvivek <vivek@cumulusnetworks.com>
Tue, 5 Apr 2016 17:40:33 +0000 (10:40 -0700)
committervivek <vivek@cumulusnetworks.com>
Tue, 5 Apr 2016 17:40:33 +0000 (10:40 -0700)
Initialize a variable to prevent warnings.

Updates: 8087b296b4750eda2d34e4f48731f81415bdccd2

Ticket: CM-10258
Reviewed By:  Trivial
Testing Done: None

lib/vrf.c

index 05c94841d5db658af1732c2f31151599f22df451..4665acbf5b3e81ea8e520d5a3c31fc0dd3e4d510 100644 (file)
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -150,7 +150,7 @@ vrf_get (vrf_id_t vrf_id, const char *name)
   struct prefix p;
   struct route_node *rn;
   struct vrf *vrf = NULL;
-  size_t namelen;
+  size_t namelen = 0;
 
   vrf_build_key (vrf_id, &p);
   rn = route_node_get (vrf_table, &p);