]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/storage_conf.c: fixes parsing to allow no sources for a pool
authorDaniel Veillard <veillard@redhat.com>
Mon, 22 Sep 2008 19:57:47 +0000 (19:57 +0000)
committerDaniel Veillard <veillard@redhat.com>
Mon, 22 Sep 2008 19:57:47 +0000 (19:57 +0000)
  fix by Dan and Chris Lalancette
Daniel

ChangeLog
src/storage_conf.c

index dce440a593ff53bc207aaa57a02f16cf0f0b142c..f0c9f791a47eb407014b67d0d480a9467ebb1628 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Sep 22 21:55:55 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+       * src/storage_conf.c: fixes parsing to allow no sources for a pool
+         fix by Dan and Chris Lalancette
+
 Mon Sep 22 18:00:39 CEST 2008 Daniel Veillard <veillard@redhat.com>
 
        * src/remote_internal.c src/storage_driver.c: structure init fixes
index 8887108b672648d9c0657669cc47c5669312745c..29d74c814280bafcd8fa830529ba20b0db58f8e5 100644 (file)
@@ -295,7 +295,7 @@ virStoragePoolDefParseDoc(virConnectPtr conn,
         xmlNodePtr *nodeset = NULL;
         int nsource, i;
 
-        if ((nsource = virXPathNodeSet(conn, "/pool/source/device", ctxt, &nodeset)) <= 0) {
+        if ((nsource = virXPathNodeSet(conn, "/pool/source/device", ctxt, &nodeset)) < 0) {
             virStorageReportError(conn, VIR_ERR_XML_ERROR,
                         "%s", _("cannot extract storage pool source devices"));
             goto cleanup;