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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 3c1e04c529..7566b0a74b 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1911,9 +1911,9 @@ finish:
"--log-target",
};
unsigned pos = 5;
- assert(command_line[pos] == NULL);
-
_cleanup_strv_free_ char **env_block = NULL;
+
+ assert(command_line[pos] == NULL);
env_block = strv_copy(environ);
snprintf(log_level, sizeof(log_level), "%d", log_get_max_level());