diff options
Diffstat (limited to 'src/analyze/analyze.c')
-rw-r--r-- | src/analyze/analyze.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index b596cadf2f..9becc72309 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1123,7 +1123,6 @@ static int dump(sd_bus *bus, char **args) { static int set_log_level(sd_bus *bus, char **args) { _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL; int r; - const char* value; assert(bus); assert(args); @@ -1133,8 +1132,6 @@ static int set_log_level(sd_bus *bus, char **args) { return -E2BIG; } - value = args[0]; - r = sd_bus_set_property( bus, "org.freedesktop.systemd1", @@ -1143,7 +1140,7 @@ static int set_log_level(sd_bus *bus, char **args) { "LogLevel", &error, "s", - value); + args[0]); if (r < 0) { log_error("Failed to issue method call: %s", bus_error_message(&error, -r)); return -EIO; |