summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/main.c b/src/core/main.c
index dcd63feb82..33529c3e76 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1748,6 +1748,8 @@ int main(int argc, char *argv[]) {
if (r == -EPERM) {
log_debug("Default target could not be isolated, starting instead: %s", bus_error_message(&error, r));
+ sd_bus_error_free(&error);
+
r = manager_add_job(m, JOB_START, target, JOB_REPLACE, &error, &default_unit_job);
if (r < 0) {
log_emergency("Failed to start default target: %s", bus_error_message(&error, r));