Misc sanity checks and documentation

This commit is contained in:
Olof hagsand 2022-04-19 09:24:40 +02:00
parent 6418e030ce
commit fa077839f0
4 changed files with 10 additions and 4 deletions

View file

@ -957,8 +957,8 @@ yang_parse_find_match(clicon_handle h,
if (dp)
free(dp);
}
else if (strcmp(xml_name(xc), "CLICON_YANG_DIR") == 0){
dir = xml_body(xc);
else if (strcmp(xml_name(xc), "CLICON_YANG_DIR") == 0 &&
(dir = xml_body(xc)) != NULL){
/* get all matching files in this directory recursively */
if ((cvv = cvec_new(0)) == NULL){
clicon_err(OE_UNIX, errno, "cvec_new");