mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
interface: Need to initialize 'add_to_list'
This commit is contained in:
parent
0b79971b84
commit
5d5c6ccc01
@ -352,7 +352,7 @@ udevIfaceListAllInterfaces(virConnectPtr conn,
|
|||||||
const char *path;
|
const char *path;
|
||||||
const char *name;
|
const char *name;
|
||||||
const char *macaddr;
|
const char *macaddr;
|
||||||
int add_to_list;
|
int add_to_list = 0;
|
||||||
|
|
||||||
path = udev_list_entry_get_name(dev_entry);
|
path = udev_list_entry_get_name(dev_entry);
|
||||||
dev = udev_device_new_from_syspath(udev, path);
|
dev = udev_device_new_from_syspath(udev, path);
|
||||||
|
Loading…
Reference in New Issue
Block a user