提交 4f84e631 编写于 作者: D Daniel Veillard

* src/storage_conf.c: fixes parsing to allow no sources for a pool

  fix by Dan and Chris Lalancette
Daniel
上级 0958489c
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> Mon Sep 22 18:00:39 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/remote_internal.c src/storage_driver.c: structure init fixes * src/remote_internal.c src/storage_driver.c: structure init fixes
......
...@@ -295,7 +295,7 @@ virStoragePoolDefParseDoc(virConnectPtr conn, ...@@ -295,7 +295,7 @@ virStoragePoolDefParseDoc(virConnectPtr conn,
xmlNodePtr *nodeset = NULL; xmlNodePtr *nodeset = NULL;
int nsource, i; 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, virStorageReportError(conn, VIR_ERR_XML_ERROR,
"%s", _("cannot extract storage pool source devices")); "%s", _("cannot extract storage pool source devices"));
goto cleanup; goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册