strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
This commit is contained in:
@@ -89,7 +89,6 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
|
||||
}
|
||||
|
||||
static int generate_mask_symlinks(void) {
|
||||
char **u;
|
||||
int r = 0;
|
||||
|
||||
if (strv_isempty(arg_mask))
|
||||
@@ -112,7 +111,6 @@ static int generate_mask_symlinks(void) {
|
||||
}
|
||||
|
||||
static int generate_wants_symlinks(void) {
|
||||
char **u;
|
||||
int r = 0;
|
||||
|
||||
if (strv_isempty(arg_wants))
|
||||
|
||||
Reference in New Issue
Block a user