1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

virnetdev: Need to initialize 'pciConfigAddr'

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

View File

@ -986,7 +986,7 @@ virNetDevGetVirtualFunctions(const char *pfname,
int ret = -1, i; int ret = -1, i;
char *pf_sysfs_device_link = NULL; char *pf_sysfs_device_link = NULL;
char *pci_sysfs_device_link = NULL; char *pci_sysfs_device_link = NULL;
char *pciConfigAddr; char *pciConfigAddr = NULL;
if (virNetDevSysfsFile(&pf_sysfs_device_link, pfname, "device") < 0) if (virNetDevSysfsFile(&pf_sysfs_device_link, pfname, "device") < 0)
return ret; return ret;