Eliminate a bunch of shadow warnings.
[asterisk/asterisk.git] / apps / confbridge / conf_config_parser.c
index 9bb8b2a..a73c658 100644 (file)
@@ -711,9 +711,9 @@ static int add_menu_entry(struct conf_menu *menu, const char *dtmf, const char *
 
        /* if adding any of the actions failed, bail */
        if (res) {
-               struct conf_menu_action *action;
-               while ((action = AST_LIST_REMOVE_HEAD(&menu_entry->actions, action))) {
-                       ast_free(action);
+               struct conf_menu_action *menu_action;
+               while ((menu_action = AST_LIST_REMOVE_HEAD(&menu_entry->actions, action))) {
+                       ast_free(menu_action);
                }
                ast_free(menu_entry);
                return -1;