]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/ordered-set.c
strv: make iterator in STRV_FOREACH() declaread in the loop
[thirdparty/systemd.git] / src / basic / ordered-set.c
index 0a76f0456165b46a48aaeabda7d4c2396c19cf95..b4c2588395db997a948f308f05ee7697464b9d61 100644 (file)
@@ -58,7 +58,6 @@ int _ordered_set_put_strdup(OrderedSet **s, const char *p  HASHMAP_DEBUG_PARAMS)
 
 int _ordered_set_put_strdupv(OrderedSet **s, char **l  HASHMAP_DEBUG_PARAMS) {
         int n = 0, r;
-        char **i;
 
         STRV_FOREACH(i, l) {
                 r = _ordered_set_put_strdup(s, *i  HASHMAP_DEBUG_PASS_ARGS);