Merge branch 'dcornejo-master'
This commit is contained in:
commit
214f9cbd82
1 changed files with 4 additions and 3 deletions
|
|
@ -1503,8 +1503,8 @@ xml2xpath1(cxobj *x,
|
|||
char *b;
|
||||
enum rfc_6020 keyword;
|
||||
|
||||
if ((xp = xml_parent(x)) != NULL &&
|
||||
xml_spec(xp) != NULL)
|
||||
if ((xp = xml_parent(x)) == NULL)
|
||||
goto ok;
|
||||
xml2xpath1(xp, cb);
|
||||
/* XXX: sometimes there should be a /, sometimes not */
|
||||
cprintf(cb, "/%s", xml_name(x));
|
||||
|
|
@ -1534,6 +1534,7 @@ xml2xpath1(cxobj *x,
|
|||
break;
|
||||
}
|
||||
}
|
||||
ok:
|
||||
retval = 0;
|
||||
done:
|
||||
return retval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue