]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkctl.c
strv: make iterator in STRV_FOREACH() declaread in the loop
[thirdparty/systemd.git] / src / network / networkctl.c
index 8fe9844c4f36b10d5437ad86c36de8db172cde48..d656027ec45e0133c136c419fb28798b8653221c 100644 (file)
@@ -525,7 +525,6 @@ static int decode_link(sd_netlink_message *m, LinkInfo *info, char **patterns, b
                 if (!strv_fnmatch_full(patterns, str, 0, &pos) &&
                     !strv_fnmatch_full(patterns, name, 0, &pos)) {
                         bool match = false;
-                        char **p;
 
                         STRV_FOREACH(p, altnames)
                                 if (strv_fnmatch_full(patterns, *p, 0, &pos)) {