diff --git a/src/core/main.c b/src/core/main.c index 9bc5b3c6dc..44e8a38f61 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1673,7 +1673,7 @@ static int invoke_main_loop( return log_emergency_errno(r, "Failed to run main loop: %m"); } - switch (m->objective) { + switch ((ManagerObjective) r) { case MANAGER_RELOAD: { LogTarget saved_log_target;