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:
parent
0afe9be906
commit
796ead9b1b
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user