GET xpath on modstate was broken
This commit is contained in:
parent
09d33acd45
commit
4d91bcd810
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ yang_modules_state_get(clicon_handle h,
|
||||||
/* xc is also original tree, need to copy it */
|
/* xc is also original tree, need to copy it */
|
||||||
if ((xw = xml_wrap(xc, "top")) == NULL)
|
if ((xw = xml_wrap(xc, "top")) == NULL)
|
||||||
goto done;
|
goto done;
|
||||||
if (xpath_first(xw, NULL, "%s", xpath)){
|
if (xpath_first(xw, nsc, "%s", xpath)){
|
||||||
if ((x = xml_dup(xc)) == NULL) /* Make copy and use below */
|
if ((x = xml_dup(xc)) == NULL) /* Make copy and use below */
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue