summaryrefslogtreecommitdiff
path: root/mate-panel
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-04-19 17:29:33 +0300
committermonsta <[email protected]>2017-04-19 17:29:33 +0300
commit05e192158ea0ec58bb4876667c1ec8ddeb324078 (patch)
tree86ba7ca63e471321b3b91b63f04b79520d077fab /mate-panel
parentd5ffd663755b88cc95b4b8bcccb06130b9653cf1 (diff)
downloadmate-panel-05e192158ea0ec58bb4876667c1ec8ddeb324078.tar.bz2
mate-panel-05e192158ea0ec58bb4876667c1ec8ddeb324078.tar.xz
fix build with gcc 4.9.2 (looks like it's in c89 mode by default)
Diffstat (limited to 'mate-panel')
-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];