diff --git a/ChangeLog b/ChangeLog index dce440a593..f0c9f791a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 22 21:55:55 CEST 2008 Daniel Veillard + + * 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 * src/remote_internal.c src/storage_driver.c: structure init fixes diff --git a/src/storage_conf.c b/src/storage_conf.c index 8887108b67..29d74c8142 100644 --- a/src/storage_conf.c +++ b/src/storage_conf.c @@ -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;