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

testutilsqemu: avoid uninitialized variable

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