diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-16 22:32:23 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-19 08:33:33 +0900 |
commit | de010b0b2e50cf0b3837ce350b116bc92605f67a (patch) | |
tree | 226685fbb97461692562035501ebc21a314f718c /src/delta | |
parent | 80a226b26b5e00a2ef9e85d1321da44cd14d051b (diff) | |
download | systemd-de010b0b2e50cf0b3837ce350b116bc92605f67a.tar.gz |
strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
Diffstat (limited to 'src/delta')
-rw-r--r-- | src/delta/delta.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c index e14ad36d03..aa5a546bce 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -195,7 +195,6 @@ static int enumerate_dir_d( _cleanup_free_ char *unit = NULL; _cleanup_free_ char *path = NULL; _cleanup_strv_free_ char **list = NULL; - char **file; char *c; int r; @@ -292,7 +291,6 @@ static int enumerate_dir( _cleanup_closedir_ DIR *d = NULL; _cleanup_strv_free_ char **files = NULL, **dirs = NULL; size_t n_files = 0, n_dirs = 0; - char **t; int r; assert(top); |