Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vlib: fix coverity warning
[vpp.git]
/
src
/
vlib
/
cli.c
diff --git
a/src/vlib/cli.c
b/src/vlib/cli.c
index
cad105f
..
a00ae62
100644
(file)
--- a/
src/vlib/cli.c
+++ b/
src/vlib/cli.c
@@
-1224,6
+1224,9
@@
add_sub_command (vlib_cli_main_t * cm, uword parent_index, uword child_index)
vec_add (sub_name, c->path + l + 1, vec_len (c->path) - (l + 1));
}
+ /* "Can't happen," check mainly to shut up coverity */
+ ALWAYS_ASSERT (sub_name != 0);
+
if (sub_name[0] == '%')
{
uword *q;