* Fixed: [Recursive calling xml_apply_ancestor is no need #180](https://github.com/clicon/clixon/issues/180)
This commit is contained in:
parent
2a4de52e56
commit
e1e391ad0d
2 changed files with 2 additions and 3 deletions
|
|
@ -2192,9 +2192,7 @@ xml_apply_ancestor(cxobj *xn,
|
|||
int ret;
|
||||
|
||||
while ((xp = xml_parent(xn)) != NULL) {
|
||||
if (fn(xp, arg) < 0)
|
||||
goto done;
|
||||
if ((ret = xml_apply_ancestor(xp, fn, arg)) < 0)
|
||||
if ((ret = fn(xp, arg)) < 0)
|
||||
goto done;
|
||||
if (ret > 0){
|
||||
retval = ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue