mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
xenapi: Fix uninitialized variable warning
This commit is contained in:
parent
d068f9609c
commit
1b747f0ded
@ -405,7 +405,7 @@ createVifNetwork (virConnectPtr conn, xen_vm vm, char *device,
|
||||
vm_opt->u.handle = xvm;
|
||||
xen_network_set *net_set = NULL;
|
||||
xen_network_record *net_rec = NULL;
|
||||
int cnt;
|
||||
int cnt = 0;
|
||||
if (xen_network_get_all(session, &net_set)) {
|
||||
for(cnt = 0; cnt < net_set->size; cnt++) {
|
||||
if (xen_network_get_record(session, &net_rec, net_set->contents[cnt])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user