mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
* src/storage_conf.c: fixes parsing to allow no sources for a pool
fix by Dan and Chris Lalancette Daniel
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user