diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 18:04:26 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 18:04:26 -0700 |
| commit | 24873f0c06e6196a105f648e8fe29d19dcddd1de (patch) | |
| tree | f0ad6ae52390a9ed3b63c6fe228da30f5cf92d7b /lib/command.c | |
| parent | 0299c0042783463ee007a6dba0de70dcf6fc36ee (diff) | |
lib: lib-warnings.patch
Remove compile warnings for the lib directory
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by:
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c index 065d2fda7c..b6dd8bacfb 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1412,7 +1412,7 @@ cmd_matcher_read_keywords(struct cmd_matcher *matcher, const char *word; int keyword_argc; const char **keyword_argv; - enum matcher_rv rv; + enum matcher_rv rv = MATCHER_OK; keyword_mask = 0; while (1) @@ -1643,7 +1643,7 @@ cmd_element_match(struct cmd_element *cmd_element, { struct cmd_matcher matcher; unsigned int token_index; - enum matcher_rv rv; + enum matcher_rv rv = MATCHER_OK; cmd_matcher_init(&matcher, cmd_element, filter, vline, index, match_type, match); |
