cli: fixed callback append of empty prefix
This commit is contained in:
parent
851242a948
commit
2485528515
1 changed files with 0 additions and 4 deletions
|
|
@ -1668,10 +1668,6 @@ cvec_concat_cb(cvec *cvv,
|
||||||
if (str[0] != '/')
|
if (str[0] != '/')
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (argc == 0){
|
|
||||||
clicon_err(OE_PLUGIN, EINVAL, "No <api_path_fmt> in cvv");
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
/* Append a api_path_fmt from sub-parts */
|
/* Append a api_path_fmt from sub-parts */
|
||||||
for (i=argc-1; i>=0; i--){
|
for (i=argc-1; i>=0; i--){
|
||||||
cprintf(cb, "%s", cv_string_get(cvec_i(cvv, i)));
|
cprintf(cb, "%s", cv_string_get(cvec_i(cvv, i)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue