From de010b0b2e50cf0b3837ce350b116bc92605f67a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 16 Mar 2022 22:32:23 +0900 Subject: strv: make iterator in STRV_FOREACH() declaread in the loop This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS() --- src/basic/os-util.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/basic/os-util.c') diff --git a/src/basic/os-util.c b/src/basic/os-util.c index 75c8500e51..ee3a211499 100644 --- a/src/basic/os-util.c +++ b/src/basic/os-util.c @@ -273,7 +273,6 @@ int load_os_release_pairs(const char *root, char ***ret) { int load_os_release_pairs_with_prefix(const char *root, const char *prefix, char ***ret) { _cleanup_strv_free_ char **os_release_pairs = NULL, **os_release_pairs_prefixed = NULL; - char **p, **q; int r; r = load_os_release_pairs(root, &os_release_pairs); -- cgit v1.2.1