提交 8363dbae 编写于 作者: J John Ferlan 提交者: Peter Krempa

interface: Need to initialize 'ifaces_list'

It was possible to call VIR_FREE in cleanup prior to initialization
上级 dd383b93
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册