summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-01-22 21:29:43 +0100
committerThomas Martitz <kugel@rockbox.org>2012-01-22 21:29:43 +0100
commit91b52a1ade10272da5af7020e6f28ce78ef22072 (patch)
tree0ae52e199b97b55f5700d6e401b6e539041ab7b2 /uisimulator
parent7dd65f7d9bf854f967116b6b2872a80a472dc7f5 (diff)
downloadrockbox-91b52a1ade10272da5af7020e6f28ce78ef22072.tar.gz
rockbox-91b52a1ade10272da5af7020e6f28ce78ef22072.tar.bz2
rockbox-91b52a1ade10272da5af7020e6f28ce78ef22072.zip
Fix another uninitialized var warning.
Change-Id: I27d06003d5e9218a940057af1b5c5c1557e7653c
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/lcd-playersim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/uisimulator/common/lcd-playersim.c b/uisimulator/common/lcd-playersim.c
index ed2af8d605..6ea6b526aa 100644
--- a/uisimulator/common/lcd-playersim.c
+++ b/uisimulator/common/lcd-playersim.c
@@ -41,15 +41,15 @@ static int double_height = 1;
void lcd_print_icon(int x, int icon_line, bool enable, char **icon)
{
- int row, col;
+ int row = 0, col = 0; /* shut up gcc */
int y = (ICON_HEIGHT+(CHAR_HEIGHT*2+2)*CHAR_PIXEL) * icon_line;
y += BORDER_MARGIN;
x += BORDER_MARGIN;
- for (row = 0; icon[row]; row++)
+ for (; icon[row]; row++)
{
- for (col = 0; icon[row][col]; col++)
+ for (; icon[row][col]; col++)
{
switch (icon[row][col])
{