From 18820c278aa5bdbf7f019eab860b4935507a3a0f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 21 Nov 2022 21:35:31 +0200 Subject: [PATCH 8/8] Fix dead 'i' assignment in save_action_auto_actions() See osdn #46087 Signed-off-by: Marko Lindqvist --- tools/ruleutil/rulesave.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/ruleutil/rulesave.c b/tools/ruleutil/rulesave.c index 43609f3f06..a7a1c1628d 100644 --- a/tools/ruleutil/rulesave.c +++ b/tools/ruleutil/rulesave.c @@ -562,8 +562,8 @@ static bool save_action_auto_uflag_block(struct section_file *sfile, order they should be tried. **************************************************************************/ static bool save_action_auto_actions(struct section_file *sfile, - const int aap, - const char *actions_path) + const int aap, + const char *actions_path) { enum gen_action unit_acts[MAX_NUM_ACTIONS]; size_t i; @@ -572,7 +572,6 @@ static bool save_action_auto_actions(struct section_file *sfile, const struct action_auto_perf *auto_perf = action_auto_perf_by_number(aap); - i = 0; for (i = 0; i < NUM_ACTIONS && auto_perf->alternatives[i] != ACTION_NONE; i++) { -- 2.35.1