]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-polkit: merge variable declarations
authorDavid Tardon <dtardon@redhat.com>
Mon, 19 Jun 2023 10:34:27 +0000 (12:34 +0200)
committerDavid Tardon <dtardon@redhat.com>
Mon, 19 Jun 2023 10:34:27 +0000 (12:34 +0200)
src/shared/bus-polkit.c

index 03abe6e26786da8aff53c901fa0b13011ba7c87f..7fee10f24f0810cff0b220f39002a1f4f1e7f656 100644 (file)
@@ -130,8 +130,7 @@ int bus_test_polkit(
                 return 1;
 
 #if ENABLE_POLKIT
-        _cleanup_(sd_bus_message_unrefp) sd_bus_message *request = NULL;
-        _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
+        _cleanup_(sd_bus_message_unrefp) sd_bus_message *request = NULL, *reply = NULL;
         int authorized = false, challenge = false;
 
         r = bus_message_new_polkit_auth_call(call, action, details, /* interactive = */ false, &request);