]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machinectl: remove unnecessary initialization 26162/head
authorMike Yuan <me@yhndnzj.com>
Mon, 23 Jan 2023 16:32:33 +0000 (00:32 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 23 Jan 2023 16:32:33 +0000 (00:32 +0800)
src/machine/machinectl.c

index b9e3848d1826bc763825979985b28721db0e6014..a147fae0bda80144ce51f91d0531c9e11a555a28 100644 (file)
@@ -1600,7 +1600,7 @@ static int enable_machine(int argc, char *argv[], void *userdata) {
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
         InstallChange *changes = NULL;
         size_t n_changes = 0;
-        const char *method = NULL;
+        const char *method;
         sd_bus *bus = ASSERT_PTR(userdata);
         int r;