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 authored and Peter Krempa committed 2013-01-22 17:29:26 +01:00
1 parent dd383b93ff
commit 8363dbaea3
1 file changed
+1 -1
+1 -1
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;