mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-12 14:06:37 +00:00
trivial: Fix critical warning when vendor is unset for a SCSI device
This commit is contained in:
parent
d3cba9a679
commit
53f75b6ab9
@ -35,7 +35,8 @@ fu_scsi_device_probe(FuDevice *device, GError **error)
|
|||||||
|
|
||||||
/* vendor */
|
/* vendor */
|
||||||
vendor = fu_udev_device_get_sysfs_attr(FU_UDEV_DEVICE(device), "vendor", NULL);
|
vendor = fu_udev_device_get_sysfs_attr(FU_UDEV_DEVICE(device), "vendor", NULL);
|
||||||
vendor_safe = fu_common_strstrip(vendor);
|
if (vendor != NULL)
|
||||||
|
vendor_safe = fu_common_strstrip(vendor);
|
||||||
if (vendor_safe == NULL || g_strcmp0(vendor_safe, "ATA") == 0) {
|
if (vendor_safe == NULL || g_strcmp0(vendor_safe, "ATA") == 0) {
|
||||||
g_set_error_literal(error,
|
g_set_error_literal(error,
|
||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user