minor things for clixon.4.4
This commit is contained in:
parent
916c1aabd7
commit
aa191152cb
3 changed files with 11 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue