core: do not initialize variable which is unconditionally set below

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-02-10 14:43:10 +01:00
parent 3c3cd61e75
commit 170d40260b
2 changed files with 2 additions and 2 deletions
+1 -1
View 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)
+1 -1
View 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);