interface: Need to initialize 'ifaces_list'

It was possible to call VIR_FREE in cleanup prior to initialization
This commit is contained in:
John Ferlan 2013-01-22 09:15:47 -05:00 committed by Peter Krempa
parent dd383b93ff
commit 8363dbaea3

View File

@ -290,7 +290,7 @@ udevIfaceListAllInterfaces(virConnectPtr conn,
struct udev_enumerate *enumerate = NULL;
struct udev_list_entry *devices;
struct udev_list_entry *dev_entry;
virInterfacePtr *ifaces_list;
virInterfacePtr *ifaces_list = NULL;
virInterfacePtr iface_obj;
int tmp_count;
int count = 0;