]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: fix bad if {}
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Oct 2018 18:46:41 +0000 (20:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Oct 2018 18:46:41 +0000 (20:46 +0200)
CID 1396318
CID 1396319

src/udev/udev-builtin-uaccess.c

index 929ea7af207fcead58a8978e32d193545e4b6495..b42da7afdd4c8d9fd052b6e35e4c03ab6ecaf1a2 100644 (file)
@@ -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";