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/run-generator/run-generator.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/run-generator') diff --git a/src/run-generator/run-generator.c b/src/run-generator/run-generator.c index 1cf14e71fc..fb62209704 100644 --- a/src/run-generator/run-generator.c +++ b/src/run-generator/run-generator.c @@ -55,7 +55,6 @@ static int parse(const char *key, const char *value, void *data) { static int generate(void) { _cleanup_fclose_ FILE *f = NULL; const char *p; - char **c; int r; if (strv_isempty(arg_commands) && !arg_success_action) -- cgit v1.2.3