This is a return argument that is to be compared against NULL on
successful return. However, it is not initialized and therefore
relies on callers setting it to NULL prior calling the function.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
{
int ret = -1;
- *pfname = NULL;
-
if (virNetDevGetPhysicalFunction(vfname, pfname) < 0)
return -1;
struct dirent *entry = NULL;
size_t i = 0;
+ *netname = NULL;
+
if (virBuildPath(&pcidev_sysfs_net_path, device_link_sysfs_path,
"net") == -1) {
virReportOOMError();