mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
testutilsqemu: avoid uninitialized variable
* tests/testutilsqemu.c (testQemuCapsInit): Initialize variables.
This commit is contained in:
parent
b34e082079
commit
2788f4d1d4
@ -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"
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user