From 4b5f0909d1854c314ade444316448bda60a60d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Doyon?= Date: Sun, 20 Apr 2008 14:44:36 +0000 Subject: [PATCH] Fix bug in r17188. The warning from the build page was valid and helpful, wish my compiler had given it to me... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17189 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/option_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index d48dd732cd..e26bab3b82 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c @@ -378,7 +378,7 @@ static void val_to_selection(struct settings_list *setting, int oldvalue, table_setting_oldval = oldvalue; table_setting_array_position = i; *selected = i; - *nb_items++; + (*nb_items)++; } else if (oldvalue == info->values[i]) *selected = i;