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
This commit is contained in:
Stéphane Doyon 2008-04-20 14:44:36 +00:00
parent b2aa86a785
commit 4b5f0909d1

View file

@ -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;