From 60c698e3785f0f2cd861e432036af44c2b934d4d Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 9 Apr 2020 13:31:56 +0200 Subject: =?UTF-8?q?applet-main:=20declaration=20of=20=E2=80=98entry?= =?UTF-8?q?=E2=80=99=20shadows=20a=20parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/applet-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/applet-main.c b/src/applet-main.c index afdb296..d04a3b4 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -541,9 +541,9 @@ menu_show (IndicatorObject * io, IndicatorObjectEntry * entry, if (entry == NULL) { /* Close any open menus instead of opening one */ GList * entries = indicator_object_get_entries(io); - GList * entry = NULL; - for (entry = entries; entry != NULL; entry = g_list_next(entry)) { - IndicatorObjectEntry * entrydata = (IndicatorObjectEntry *)entry->data; + GList * iterator = NULL; + for (iterator = entries; iterator != NULL; iterator = g_list_next(iterator)) { + IndicatorObjectEntry * entrydata = (IndicatorObjectEntry *)iterator->data; gtk_menu_popdown(entrydata->menu); } g_list_free(entries); -- cgit v1.2.1