Update playlist.c

This commit is contained in:
markwkidd 2016-12-10 11:03:28 -05:00 committed by GitHub
parent edf58d9e29
commit c6bc316e04
1 changed files with 2 additions and 2 deletions

View File

@ -466,9 +466,9 @@ static bool playlist_read_file(
/* Read playlist entry and terminate string with NULL /* Read playlist entry and terminate string with NULL
* regardless of Windows or Unix line endings * regardless of Windows or Unix line endings
*/ */
if(last = strrchr(buf[i], '\r')) if((last = strrchr(buf[i], '\r')))
*last = '\0'; *last = '\0';
else if(last = strrchr(buf[i], '\n')) else if((last = strrchr(buf[i], '\n')))
*last = '\0'; *last = '\0';
} }