]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: do not initialize variable which is unconditionally set below
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 8 May 2019 09:09:10 +0000 (11:09 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Feb 2021 13:43:10 +0000 (14:43 +0100)
src/core/dbus-timer.c
src/core/dbus-unit.c

index 8e69c173270c289d298ff213b61cb3eab79737ce..88b2f2cacf58647482d199875c8121a64fb772f9 100644 (file)
@@ -338,7 +338,7 @@ static int bus_timer_set_transient_property(
 
                 b = timer_base_from_string(name);
                 if (b < 0)
-                        return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Unknown timer base");
+                        return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Unknown timer base %s", name);
 
                 r = sd_bus_message_read(message, "t", &usec);
                 if (r < 0)
index 67cc58ee9e0666af8dbcb593b59a63a23758cace..90bf5514a3eb25f5a7cbb323958da99378cc9c09 100644 (file)
@@ -1982,7 +1982,7 @@ static int bus_unit_set_transient_property(
                 UnitWriteFlags flags,
                 sd_bus_error *error) {
 
-        UnitDependency d = _UNIT_DEPENDENCY_INVALID;
+        UnitDependency d;
         int r;
 
         assert(u);