diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 3600918eb3..9935643f5d 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -1042,6 +1042,8 @@ static int get_track_filename(struct playlist_info* playlist, int index, | |||
1042 | char tmp_buf[MAX_PATH+1]; | 1042 | char tmp_buf[MAX_PATH+1]; |
1043 | char dir_buf[MAX_PATH+1]; | 1043 | char dir_buf[MAX_PATH+1]; |
1044 | bool utf8 = playlist->utf8; | 1044 | bool utf8 = playlist->utf8; |
1045 | if (buf_length > 0) | ||
1046 | buf[0] = '\0'; | ||
1045 | 1047 | ||
1046 | if (index < 0 || index >= playlist->amount) | 1048 | if (index < 0 || index >= playlist->amount) |
1047 | return -1; | 1049 | return -1; |