minor fixes

This commit is contained in:
Olof hagsand 2020-09-27 17:15:36 +02:00
parent 9984cfa1c8
commit 101a8cb6e0
3 changed files with 20 additions and 6 deletions

View file

@ -776,7 +776,7 @@ yang2cli_list(clicon_handle h,
int retval = -1;
char *helptext = NULL;
char *s;
int list_has_callback;
int list_has_callback = 0;
cprintf(cb, "%*s%s", level*3, "", yang_argument_get(ys));
if ((yd = yang_find(ys, Y_DESCRIPTION, NULL)) != NULL){
@ -836,9 +836,9 @@ yang2cli_list(clicon_handle h,
goto done;
}
cprintf(cb, "%*s}\n", level*3, "");
if ((show_tree == 1) && (list_has_callback)) {
cprintf(cb, "%*s}\n", level*3, "");
}
if ((show_tree == 1) && (list_has_callback)) {
cprintf(cb, "%*s}\n", level*3, "");
}
retval = 0;
done:
if (helptext)