diff options
-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 3479aebe88..cbb19fc2bd 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -112,6 +112,7 @@ extern unsigned char bitmap_icons_6x8[LastIcon][6]; | |||
112 | static int build_playlist(int start_index) | 112 | static 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 | } |