mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-25 06:03:40 +03:00
udev: fix bad if {}
CID 1396318 CID 1396319
This commit is contained in:
parent
d1db1c438f
commit
dc4fedd8cb
@ -29,9 +29,10 @@ static int builtin_uaccess(sd_device *dev, int argc, char *argv[], bool test) {
|
||||
return 0;
|
||||
|
||||
r = sd_device_get_devname(dev, &path);
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
log_device_error_errno(dev, r, "Failed to get device name: %m");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (sd_device_get_property_value(dev, "ID_SEAT", &seat) < 0)
|
||||
seat = "seat0";
|
||||
|
Loading…
x
Reference in New Issue
Block a user