Fix MinGW pipeline after 49cb59778a4e6c2d04bb9383a9d97fbbc83f9fce
Broken build job: https://gitlab.com/libvirt/libvirt/-/jobs/951162206 Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
51d1a2cacf
commit
0d49a565e5
@ -354,7 +354,12 @@ virMediatedDevicePtr
|
|||||||
virMediatedDeviceListSteal(virMediatedDeviceListPtr list,
|
virMediatedDeviceListSteal(virMediatedDeviceListPtr list,
|
||||||
virMediatedDevicePtr dev)
|
virMediatedDevicePtr dev)
|
||||||
{
|
{
|
||||||
int idx = virMediatedDeviceListFindIndex(list, dev->path);
|
int idx = -1;
|
||||||
|
|
||||||
|
if (!dev)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
idx = virMediatedDeviceListFindIndex(list, dev->path);
|
||||||
|
|
||||||
return virMediatedDeviceListStealIndex(list, idx);
|
return virMediatedDeviceListStealIndex(list, idx);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user