]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Consolidate virXPathNodeSet()
authorDaniel Veillard <veillard@redhat.com>
Thu, 22 Oct 2009 08:32:15 +0000 (10:32 +0200)
committerDaniel Veillard <veillard@redhat.com>
Thu, 22 Oct 2009 08:33:52 +0000 (10:33 +0200)
commit2f4682a9f8b76299a2c529d2aebc68f706e09ede
treef9afe404c510cfa489be601f1983bd616c32c186
parent08bed02515ae090cb77eb059b65b9ce74fc162e2
Consolidate virXPathNodeSet()

virXPathNodeSet() could return -1 when doing an evaluation failure
due to xmlXPathEval() from libxml2 behaviour.
* src/util/xml.c: make sure we always return 0 unless the returned
  XPath type is of the wrong type (meaning the query passed didn't
  evaluate to a node set and code must be fixed)
src/util/xml.c