summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-08-08 19:03:14 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-08-08 19:03:14 +0000
commitc960330ebf7fdb9e223f8d0f4991a211a31e9386 (patch)
tree3ee0fce696b05db97d8f5818b4d48b06d74fa1a8
parenta99a60c1d3109b107c4ee5165544a5e9c9fab108 (diff)
downloadrockbox-c960330ebf7fdb9e223f8d0f4991a211a31e9386.tar.gz
rockbox-c960330ebf7fdb9e223f8d0f4991a211a31e9386.zip
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 3479aebe88..cbb19fc2bd 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -112,6 +112,7 @@ extern unsigned char bitmap_icons_6x8[LastIcon][6];
112static int build_playlist(int start_index) 112static int build_playlist(int start_index)
113{ 113{
114 int i; 114 int i;
115 int start=start_index;
115 116
116 playlist_clear(); 117 playlist_clear();
117 118
@@ -125,7 +126,7 @@ static int build_playlist(int start_index)
125 else 126 else
126 { 127 {
127 /* Adjust the start index when se skip non-MP3 entries */ 128 /* Adjust the start index when se skip non-MP3 entries */
128 if(i < start_index) 129 if(i < start)
129 start_index--; 130 start_index--;
130 } 131 }
131 } 132 }