summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-04-19 17:29:33 +0300
committerraveit65 <[email protected]>2017-04-25 12:28:22 +0200
commitd11820a11eb814b139869843c7f97c190fdcdeec (patch)
treec1c2818ebee62c5f80aa72b889a29d0089c3cd6c
parentfa0295318e3760dbc7ff6802b50548ce9d39d267 (diff)
downloadmate-panel-d11820a11eb814b139869843c7f97c190fdcdeec.tar.bz2
mate-panel-d11820a11eb814b139869843c7f97c190fdcdeec.tar.xz
fix build with gcc 4.9.2 (looks like it's in c89 mode by default)
-rw-r--r--mate-panel/panel-run-dialog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c
index 4c525519..500fcb62 100644
--- a/mate-panel/panel-run-dialog.c
+++ b/mate-panel/panel-run-dialog.c
@@ -185,7 +185,8 @@ _panel_run_save_recent_programs_list (PanelRunDialog *dialog,
}
if (history_reverse) {
- for (guint pos = 0; pos < items_added / 2; pos++)
+ guint pos;
+ for (pos = 0; pos < items_added / 2; pos++)
{
gchar const * tmp = items[pos + 1];
items[pos + 1] = items[items_added - pos];