]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix some XPath relative node resets
authorDaniel Veillard <veillard@redhat.com>
Tue, 29 Sep 2009 09:07:01 +0000 (11:07 +0200)
committerDaniel Veillard <veillard@redhat.com>
Tue, 29 Sep 2009 09:07:01 +0000 (11:07 +0200)
commit237f3bf8dabb480f6214208d1aa975aac5d8700c
tree121c20a47189c2a34dcb0ec5d1a16dbb92580e16
parent25e2857c219e7fb91412746f7919931552c4e07a
Fix some XPath relative node resets

* src/util/xml.c: The virXPath... function take extra care to preserve
  the XPath context node (ctxt->node) but in the case of virXPathString
  and virXPathBoolean they forgot to do this on the error path. This
  patch fixes this and move all ctxt->node = relnode instuctions just
  after the xmlXPathEval() to make sure this doesn't happen if this code
  is modified.
src/util/xml.c