[gnome-applets/wip/muktupavels/werror] mini-commander: fix -Wshadow warning



commit 57419d85f1b14e2d05a67f5a5686b9d0c009d472
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Apr 4 22:15:20 2020 +0300

    mini-commander: fix -Wshadow warning

 gnome-applets/mini-commander/history.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-applets/mini-commander/history.c b/gnome-applets/mini-commander/history.c
index 72dee1740..3d8af3f20 100644
--- a/gnome-applets/mini-commander/history.c
+++ b/gnome-applets/mini-commander/history.c
@@ -100,8 +100,8 @@ append_history_entry(MCData *mcdata, const char * entry, gboolean load_history)
 
     for (i = 0; i < MC_HISTORY_LIST_LENGTH; i++) {
            if (exists_history_entry(i)) {
-               gchar *entry = g_strdup (get_history_entry (i));
-               history = g_array_append_val (history, entry);
+               gchar *history_entry = g_strdup (get_history_entry (i));
+               history = g_array_append_val (history, history_entry);
         }
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]