提交 2bebf938 编写于 作者: E Eric Blake

build: avoid uninitialized variable

Caught by gcc -O2, during autobuild.sh.

* src/qemu/qemu_driver.c (qemudDomainGetVcpupinInfo): Initialize vm.
上级 481e4d79
...@@ -3173,7 +3173,7 @@ qemudDomainGetVcpupinInfo(virDomainPtr dom, ...@@ -3173,7 +3173,7 @@ qemudDomainGetVcpupinInfo(virDomainPtr dom,
unsigned int flags) { unsigned int flags) {
struct qemud_driver *driver = dom->conn->privateData; struct qemud_driver *driver = dom->conn->privateData;
virDomainObjPtr vm; virDomainObjPtr vm = NULL;
virNodeInfo nodeinfo; virNodeInfo nodeinfo;
virDomainDefPtr targetDef = NULL; virDomainDefPtr targetDef = NULL;
int ret = -1; int ret = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册