]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus: use gcc ?: shortcut
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Nov 2018 16:21:10 +0000 (17:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Nov 2018 11:02:15 +0000 (12:02 +0100)
src/libsystemd/sd-bus/bus-control.c

index 76a5be8e5d77463bf3f99cecb1e42365328634ab..6507ce95f7f61333e350c946ca33b32bcd819e41 100644 (file)
@@ -665,7 +665,7 @@ _public_ int sd_bus_get_name_creds(
                                                 NULL,
                                                 &reply,
                                                 "s",
-                                                unique ? unique : name);
+                                                unique ?: name);
                                 if (r < 0)
                                         return r;
 
@@ -692,7 +692,7 @@ _public_ int sd_bus_get_name_creds(
                                                 &error,
                                                 &reply,
                                                 "s",
-                                                unique ? unique : name);
+                                                unique ?: name);
                                 if (r < 0) {
                                         if (!sd_bus_error_has_name(&error, "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown"))
                                                 return r;