提交 b419ebc7 编写于 作者: D Daniel Veillard

* src/storage_conf.c: add one missing check in virStoragePoolDefParseDoc

Daniel
上级 10ccfc92
Wed Sep 3 09:08:01 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/storage_conf.c: add one missing check in virStoragePoolDefParseDoc
Tue Sep 2 17:30:50 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/domain_conf.c: fix a parsing error for input devices
......
......@@ -331,6 +331,11 @@ virStoragePoolDefParseDoc(virConnectPtr conn,
if (ret->source.name == NULL) {
/* source name defaults to pool name */
ret->source.name = strdup(ret->name);
if (ret->source.name == NULL) {
virStorageReportError(conn, VIR_ERR_NO_MEMORY, "%s",
_("pool name"));
goto cleanup;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册