提交 2788f4d1 编写于 作者: E Eric Blake

testutilsqemu: avoid uninitialized variable

* tests/testutilsqemu.c (testQemuCapsInit): Initialize variables.
上级 b34e0820
......@@ -58,8 +58,8 @@ virCapsPtr testQemuCapsInit(void) {
struct utsname utsname;
virCapsPtr caps;
virCapsGuestPtr guest;
virCapsGuestMachinePtr *machines;
int nmachines;
virCapsGuestMachinePtr *machines = NULL;
int nmachines = 0;
static const char *const xen_machines[] = {
"xenner"
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册