sd-device: minor may be NULL

This commit is contained in:
Yu Watanabe
2022-04-11 19:56:38 +09:00
parent a46f9cd049
commit 9a81972b3b
+1 -1
View File
@@ -757,7 +757,7 @@ int device_read_uevent_file(sd_device *device) {
if (major) {
r = device_set_devnum(device, major, minor);
if (r < 0)
log_device_debug_errno(device, r, "sd-device: Failed to set 'MAJOR=%s' or 'MINOR=%s' from '%s', ignoring: %m", major, minor, path);
log_device_debug_errno(device, r, "sd-device: Failed to set 'MAJOR=%s' or 'MINOR=%s' from '%s', ignoring: %m", major, strna(minor), path);
}
return 0;