summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-11-29 13:42:06 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-11-29 14:15:05 +0100
commitef736f12bab519bb0aa4e8e0d55af0d14f0e163f (patch)
treed2bb52e18bc70734e60877688c0cc27444ba39f2 /lib/command.c
parentddae30158dff25ed093f4ab72c46a870ea5ad9f5 (diff)
*: fix "uninitialized" warnings
reported by clang for: - cmd_complete_command() - show_ip_bgp_ipv4() Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c
index bf7e269acc..3c429ce1a7 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -671,7 +671,7 @@ cmd_complete_command (vector vline, struct vty *vty, int *status)
vector_set_index (input_line, index + offset, vector_lookup (vline, index));
// get token completions -- this is a copying operation
- vector comps, initial_comps;
+ vector comps = NULL, initial_comps;
initial_comps = cmd_complete_command_real (input_line, vty, status);
if (!MATCHER_ERROR (*status))