summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist_catalog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c
index 2fbffda..ef44e36 100644
--- a/apps/playlist_catalog.c
+++ b/apps/playlist_catalog.c
@@ -381,9 +381,9 @@ static int add_to_playlist(const char* playlist, bool new_playlist,
if (f < 0)
goto exit;
+ i = lseek(f, 0, SEEK_CUR);
fs = filesize(f);
-
- for (i=0; i<fs;)
+ while (i < fs)
{
int n;