strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
int verb_kill(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_strv_free_ char **names = NULL;
|
||||
char *kill_who = NULL, **name;
|
||||
char *kill_who = NULL;
|
||||
sd_bus *bus;
|
||||
int r, q;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user