summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-17 16:18:17 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-17 16:18:17 +0100
commit15bd5aee092572116886f0f9381f3477f48241fb (patch)
treef78e49e17ccf1f384189a27c2c8303b36b903461 /src/core/main.c
parentb6e2f3293d0f9a821819d96038eec2a19062151f (diff)
main: make gcc shut up
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());