mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-08 21:17:47 +03:00
analyze: add forgotten return statement
We would fail with an assert in sd_bus_message_enter_container() afterwards. (cherry picked from commit5475e963c5
) (cherry picked from commite0ba044985
)
This commit is contained in:
parent
c54086dad8
commit
1316666e98
@ -1340,7 +1340,7 @@ static int dot(int argc, char *argv[], void *userdata) {
|
||||
|
||||
r = bus_call_method(bus, bus_systemd_mgr, "ListUnits", &error, &reply, NULL);
|
||||
if (r < 0)
|
||||
log_error_errno(r, "Failed to list units: %s", bus_error_message(&error, r));
|
||||
return log_error_errno(r, "Failed to list units: %s", bus_error_message(&error, r));
|
||||
|
||||
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssssouso)");
|
||||
if (r < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user