minor things for clixon.4.4

This commit is contained in:
Olof hagsand 2020-03-27 11:20:35 +01:00
parent 916c1aabd7
commit aa191152cb
3 changed files with 11 additions and 6 deletions

View file

@ -1653,7 +1653,11 @@ assign_namespaces(cxobj *x0, /* source */
}
}
else{
y = xml_spec(x0);
if ((y = xml_spec(x0)) == NULL){
clicon_err(OE_YANG, ENOENT, "XML %s does not have yang spec",
xml_name(x0));
goto done;
}
if ((prefix1 = strdup(yang_find_myprefix(y))) == NULL){
clicon_err(OE_UNIX, errno, "strdup");
goto done;