1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

utils: Fix PCI device path checks

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2022-07-27 14:26:37 -07:00
parent 0afe9be906
commit 796ead9b1b
3 changed files with 3 additions and 3 deletions

View File

@ -228,7 +228,7 @@ int main(int argc, char *argv[])
return -1;
}
if (dev->pci_device_path)
if (dev->pci_device_path[0])
{
char *ptr = strrchr(dev->pci_device_path, '/');
if (ptr)

View File

@ -145,7 +145,7 @@ int main(int argc, char *argv[])
return -1;
}
if (dev->pci_device_path)
if (dev->pci_device_path[0])
{
char *ptr = strrchr(dev->pci_device_path, '/');
if (ptr)

View File

@ -100,7 +100,7 @@ int main(int argc, char *argv[])
return -1;
}
if (dev->pci_device_path)
if (dev->pci_device_path[0])
{
char *ptr = strrchr(dev->pci_device_path, '/');
if (ptr)