diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-01-15 14:48:17 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-15 14:48:55 +0100 |
commit | 644d9eab6c55c736e72afdb4a8f3432a07d8fc11 (patch) | |
tree | bb48ebf5a2e2cf120c0655d9d49239982415a96d /apps/radio/radioart.c | |
parent | 80aac924e8321e7d50f31d0b62e48fee469282ef (diff) | |
download | rockbox-644d9eab6c55c736e72afdb4a8f3432a07d8fc11.tar.gz rockbox-644d9eab6c55c736e72afdb4a8f3432a07d8fc11.zip |
radio: Fix crash with radioart after skipping some stations
Change-Id: I5dbf60598f9b0b7d56272b6736726c1e6bc2295c
Diffstat (limited to 'apps/radio/radioart.c')
-rw-r--r-- | apps/radio/radioart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/radio/radioart.c b/apps/radio/radioart.c index cab6aa29ce..86a987c14f 100644 --- a/apps/radio/radioart.c +++ b/apps/radio/radioart.c | |||
@@ -47,10 +47,10 @@ static struct radioart radioart[MAX_RADIOART_IMAGES]; | |||
47 | 47 | ||
48 | static int find_oldest_image_index(void) | 48 | static int find_oldest_image_index(void) |
49 | { | 49 | { |
50 | int i; | 50 | unsigned i; |
51 | long oldest_tick = current_tick; | 51 | long oldest_tick = current_tick; |
52 | int oldest_idx = -1; | 52 | int oldest_idx = -1; |
53 | for(i = 0; ARRAYLEN(radioart); i++) | 53 | for(i = 0; i < ARRAYLEN(radioart); i++) |
54 | { | 54 | { |
55 | struct radioart *ra = &radioart[i]; | 55 | struct radioart *ra = &radioart[i]; |
56 | /* last_tick is only valid if it's actually loaded, i.e. valid handle */ | 56 | /* last_tick is only valid if it's actually loaded, i.e. valid handle */ |