commit | 0f04f8ed6147227273f43004486019e547fbfd4d | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Tue Sep 17 23:04:40 2002 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Tue Sep 17 23:04:40 2002 +0000 |
tree | 765b8706d530914f0134015a0d9a98886a227a1c | |
parent | a646cfdb14097f72d3b0ce9b0f43126934d8efd3 [diff] [blame] |
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
diff --git a/tree.c b/tree.c index faf33f7..7177ae6 100644 --- a/tree.c +++ b/tree.c
@@ -3484,7 +3484,8 @@ */ 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; }