Skip to content

Commit

Permalink
cli: fixed callback append of empty prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Jul 29, 2023
1 parent 851242a commit 2485528
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/cli/cli_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1668,10 +1668,6 @@ cvec_concat_cb(cvec *cvv,
if (str[0] != '/')
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 */
for (i=argc-1; i>=0; i--){
cprintf(cb, "%s", cv_string_get(cvec_i(cvv, i)));
Expand Down

0 comments on commit 2485528

Please sign in to comment.