]> xenbits.xensource.com Git - libvirt.git/commitdiff
interface: Need to initialize 'ifaces_list'
authorJohn Ferlan <jferlan@redhat.com>
Tue, 22 Jan 2013 14:15:47 +0000 (09:15 -0500)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jan 2013 16:29:26 +0000 (17:29 +0100)
It was possible to call VIR_FREE in cleanup prior to initialization

src/interface/interface_backend_udev.c

index d2590434bdde7b1c2d68516dd92f22477985113f..92c35d9202f7119c9abd1327e03a1d2c706a94a0 100644 (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;