From: Lennart Poettering Date: Wed, 24 Oct 2018 18:46:41 +0000 (+0200) Subject: udev: fix bad if {} X-Git-Tag: v240~479^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc4fedd8cb1a71d9bd0d763768acfc5da5aac04f;p=thirdparty%2Fsystemd.git udev: fix bad if {} CID 1396318 CID 1396319 --- diff --git a/src/udev/udev-builtin-uaccess.c b/src/udev/udev-builtin-uaccess.c index 929ea7af207..b42da7afdd4 100644 --- a/src/udev/udev-builtin-uaccess.c +++ b/src/udev/udev-builtin-uaccess.c @@ -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";