From 4f84e631ed1714cb3ddd467f73cbf1b926256789 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 22 Sep 2008 19:57:47 +0000 Subject: [PATCH] * src/storage_conf.c: fixes parsing to allow no sources for a pool fix by Dan and Chris Lalancette Daniel --- ChangeLog | 5 +++++ src/storage_conf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;