strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
This commit is contained in:
@@ -194,7 +194,6 @@ static int run(int argc, char *argv[]) {
|
||||
|
||||
} else {
|
||||
_cleanup_strv_free_ char **files = NULL;
|
||||
char **fn, **i;
|
||||
|
||||
STRV_FOREACH(i, arg_proc_cmdline_modules) {
|
||||
k = module_load_and_warn(ctx, *i, true);
|
||||
|
||||
Reference in New Issue
Block a user