strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
This commit is contained in:
@@ -49,7 +49,6 @@ static void load_testdata_env(void) {
|
||||
_cleanup_free_ char *s = NULL;
|
||||
_cleanup_free_ char *envpath = NULL;
|
||||
_cleanup_strv_free_ char **pairs = NULL;
|
||||
char **k, **v;
|
||||
|
||||
if (called)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user