bgpd: Intialize all the variables used in argv_find.

Ticket: CM-17706
Review: CCR-6639
Testing: Manual (test failing in min test for ARM)

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
Mitesh Kanjariya 2017-08-23 02:09:55 -07:00 committed by Mitesh Kanjariya
parent 9650716a11
commit 8367c32764
2 changed files with 5 additions and 5 deletions

View file

@ -2347,7 +2347,7 @@ DEFUN(show_bgp_l2vpn_evpn_route,
JSON_STR) JSON_STR)
{ {
struct bgp *bgp; struct bgp *bgp;
int type_idx; int type_idx = 0;
int type = 0; int type = 0;
u_char uj = 0; u_char uj = 0;
json_object *json = NULL; json_object *json = NULL;

View file

@ -1368,7 +1368,7 @@ DEFUN (access_list_exact,
"Prefix to match. e.g. 10.0.0.0/8\n" "Prefix to match. e.g. 10.0.0.0/8\n"
"Exact match of the prefixes\n") "Exact match of the prefixes\n")
{ {
int idx; int idx = 0;
int exact = 0; int exact = 0;
int idx_word = 1; int idx_word = 1;
int idx_permit_deny = 2; int idx_permit_deny = 2;
@ -1410,7 +1410,7 @@ DEFUN (no_access_list_exact,
"Prefix to match. e.g. 10.0.0.0/8\n" "Prefix to match. e.g. 10.0.0.0/8\n"
"Exact match of the prefixes\n") "Exact match of the prefixes\n")
{ {
int idx; int idx = 0;
int exact = 0; int exact = 0;
int idx_word = 2; int idx_word = 2;
int idx_permit_deny = 3; int idx_permit_deny = 3;
@ -1549,7 +1549,7 @@ DEFUN (ipv6_access_list_exact,
"IPv6 prefix\n" "IPv6 prefix\n"
"Exact match of the prefixes\n") "Exact match of the prefixes\n")
{ {
int idx; int idx = 0;
int exact = 0; int exact = 0;
int idx_word = 2; int idx_word = 2;
int idx_allow = 3; int idx_allow = 3;
@ -1592,7 +1592,7 @@ DEFUN (no_ipv6_access_list_exact,
"Prefix to match. e.g. 3ffe:506::/32\n" "Prefix to match. e.g. 3ffe:506::/32\n"
"Exact match of the prefixes\n") "Exact match of the prefixes\n")
{ {
int idx; int idx = 0;
int exact = 0; int exact = 0;
int idx_word = 3; int idx_word = 3;
int idx_permit_deny = 4; int idx_permit_deny = 4;