From e503f9e922cdbc5b77066b84cbc71a0315c7a3ff Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 16 Jan 2019 09:39:43 -0800 Subject: [PATCH] Silence errors for empty playlist files. Fixes https://github.com/libretro/RetroArch/issues/8015 --- playlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playlist.c b/playlist.c index 2d7750b91d..cd73048c83 100644 --- a/playlist.c +++ b/playlist.c @@ -832,6 +832,10 @@ static bool playlist_read_file( char buf[16] = {0}; int64_t bytes_read = filestream_read(file, buf, 15); + /* Empty playlist file */ + if (bytes_read == 0) + return true; + filestream_seek(file, 0, SEEK_SET); if (bytes_read == 15)