diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2002-08-08 19:03:14 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-08 19:03:14 +0000 |
| commit | c960330ebf7fdb9e223f8d0f4991a211a31e9386 (patch) | |
| tree | 3ee0fce696b05db97d8f5818b4d48b06d74fa1a8 | |
| parent | a99a60c1d3109b107c4ee5165544a5e9c9fab108 (diff) | |
| download | rockbox-c960330ebf7fdb9e223f8d0f4991a211a31e9386.zip rockbox-c960330ebf7fdb9e223f8d0f4991a211a31e9386.tar.gz rockbox-c960330ebf7fdb9e223f8d0f4991a211a31e9386.tar.bz2 rockbox-c960330ebf7fdb9e223f8d0f4991a211a31e9386.tar.xz | |
Fixed indexing bug in build_playlist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1622 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index 3479aeb..cbb19fc 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -112,6 +112,7 @@ extern unsigned char bitmap_icons_6x8[LastIcon][6]; static int build_playlist(int start_index) { int i; + int start=start_index; playlist_clear(); @@ -125,7 +126,7 @@ static int build_playlist(int start_index) else { /* Adjust the start index when se skip non-MP3 entries */ - if(i < start_index) + if(i < start) start_index--; } } |