diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-09-17 23:04:40 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-09-17 23:04:40 +0000 |
commit | 0f04f8ed6147227273f43004486019e547fbfd4d (patch) | |
tree | 765b8706d530914f0134015a0d9a98886a227a1c /tree.c | |
parent | a646cfdb14097f72d3b0ce9b0f43126934d8efd3 (diff) | |
download | libxml2-0f04f8ed6147227273f43004486019e547fbfd4d.tar.gz |
fixed another stupid bug in xmlGetNodePath() --version now report the
* tree.c: fixed another stupid bug in xmlGetNodePath()
* xmllint.c: --version now report the options compiled in
Daniel
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3484,7 +3484,8 @@ xmlGetNodePath(xmlNodePtr node) */ tmp = cur->prev; while (tmp != NULL) { - if (xmlStrEqual(cur->name, tmp->name)) + if ((tmp->type == XML_ELEMENT_NODE) && + (xmlStrEqual(cur->name, tmp->name))) occur++; tmp = tmp->prev; } |