summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c3
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--;
}
}