From fb8bb677ad12b6b837192cb32a395b9e9c2bcdb6 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 20 Oct 2022 20:13:07 +0200 Subject: [PATCH] removed shadowing of outer variable by local variable This issue was found by Cppcheck (static C/C++ code analysis tool). --- src/editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index 6c992e98..080c1761 100644 --- a/src/editor.c +++ b/src/editor.c @@ -14219,7 +14219,8 @@ static void HandleControlButtons(struct GadgetInfo *gi) id <= GADGET_ID_ELEMENTLIST_LAST) { int element_position = id - GADGET_ID_ELEMENTLIST_FIRST; - int new_element = editor_elements[element_position + element_shift]; + + new_element = editor_elements[element_position + element_shift]; if (IS_EDITOR_CASCADE(new_element)) { -- 2.34.1