chiark / gitweb /
main: make gcc shut up
[elogind.git] / src / core / main.c
index 3c1e04c..7566b0a 100644 (file)
@@ -1911,9 +1911,9 @@ finish:
                         "--log-target",
                 };
                 unsigned pos = 5;
                         "--log-target",
                 };
                 unsigned pos = 5;
-                assert(command_line[pos] == NULL);
-
                 _cleanup_strv_free_ char **env_block = 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());
                 env_block = strv_copy(environ);
 
                 snprintf(log_level, sizeof(log_level), "%d", log_get_max_level());