diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-16 14:32:23 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-19 00:33:33 +0100 |
commit | de010b0b2e50cf0b3837ce350b116bc92605f67a (patch) | |
tree | 226685fbb97461692562035501ebc21a314f718c /src/test/test-sd-path.c | |
parent | list: make LIST_FOREACH() and LIST_FOREACH_BACKWARDS() safer (diff) | |
download | systemd-de010b0b2e50cf0b3837ce350b116bc92605f67a.tar.xz systemd-de010b0b2e50cf0b3837ce350b116bc92605f67a.zip |
strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
Diffstat (limited to 'src/test/test-sd-path.c')
-rw-r--r-- | src/test/test-sd-path.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/test-sd-path.c b/src/test/test-sd-path.c index 10a8a4a63f..4f23e3bb69 100644 --- a/src/test/test-sd-path.c +++ b/src/test/test-sd-path.c @@ -32,7 +32,6 @@ TEST(sd_path_lookup) { TEST(sd_path_lookup_strv) { for (uint64_t i = 0; i < _SD_PATH_MAX; i++) { _cleanup_strv_free_ char **t = NULL, **s = NULL; - char **item; int r; r = sd_path_lookup_strv(i, NULL, &t); |