提交 43773d48 编写于 作者: J Ján Tomko

testutilsxen: error out on initialization failure

libxlDriverConfigNew can possibly fail on wrong
firmware values (unlikely) or on failure to create
the log directory (possible if you're debugging
tests with VIR_FILE_ACCESS)
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Fixes: 4a4132b4Reviewed-by: NJim Fehlig <jfehlig@suse.com>
上级 f16663d5
......@@ -94,7 +94,8 @@ libxlDriverPrivatePtr testXLInitDriver(void)
return NULL;
}
driver->config = libxlDriverConfigNew();
if (!(driver->config = libxlDriverConfigNew()))
return NULL;
driver->config->caps = testXLInitCaps();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册