diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-11-11 11:22:40 +0000 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2020-11-13 15:38:17 +0000 |
commit | a5180ba1b1ababbfa046848418c099580aceef27 (patch) | |
tree | 56593c6ca8358e425b06291c4b1d13c454d9cf67 | |
parent | f260eb97866978746ebd3f3441dc66e4ff7111cd (diff) |
pg: fix uninitialized variable in pg mac filter CLI
Fixes coverity issue 214887
Change-Id: I81bfc009faabcb74f950a94715a0395fac264ee9
Type: fix
Fixes: 21fb4f71ee3824c8f177045f21fea258ece602a9
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
-rw-r--r-- | src/vnet/pg/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/pg/input.c b/src/vnet/pg/input.c index d5cf929331a..63031cef35d 100644 --- a/src/vnet/pg/input.c +++ b/src/vnet/pg/input.c @@ -1911,7 +1911,7 @@ pg_input_mac_filter_cfg (vlib_main_t * vm, { unformat_input_t _line_input, *line_input = &_line_input; u32 sw_if_index = ~0; - int is_enable; + int is_enable = 1; if (!unformat_user (input, unformat_line_input, line_input)) return 0; |