strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
This commit is contained in:
@@ -860,7 +860,6 @@ int netdev_load_one(Manager *manager, const char *filename) {
|
||||
|
||||
int netdev_load(Manager *manager, bool reload) {
|
||||
_cleanup_strv_free_ char **files = NULL;
|
||||
char **f;
|
||||
int r;
|
||||
|
||||
assert(manager);
|
||||
|
||||
Reference in New Issue
Block a user