diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-07 15:52:33 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-11 16:59:00 +0200 |
commit | 5475e963c5e6ade35404384ba03caf79cb1bc2e5 (patch) | |
tree | 96d89ec560ae7447cc774d22e7672d606e27994c /src/analyze/analyze-dot.c | |
parent | f37508d506bc54bea16c638a6170870e1ee25a73 (diff) | |
download | systemd-5475e963c5e6ade35404384ba03caf79cb1bc2e5.tar.gz |
analyze: add forgotten return statement
We would fail with an assert in sd_bus_message_enter_container() afterwards.
Diffstat (limited to 'src/analyze/analyze-dot.c')
-rw-r--r-- | src/analyze/analyze-dot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze-dot.c b/src/analyze/analyze-dot.c index 13bea4598f..bf8aa8148f 100644 --- a/src/analyze/analyze-dot.c +++ b/src/analyze/analyze-dot.c @@ -149,7 +149,7 @@ int verb_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) |