Update playlist.c
This commit is contained in:
parent
edf58d9e29
commit
c6bc316e04
|
@ -466,9 +466,9 @@ static bool playlist_read_file(
|
|||
/* Read playlist entry and terminate string with NULL
|
||||
* regardless of Windows or Unix line endings
|
||||
*/
|
||||
if(last = strrchr(buf[i], '\r'))
|
||||
if((last = strrchr(buf[i], '\r')))
|
||||
*last = '\0';
|
||||
else if(last = strrchr(buf[i], '\n'))
|
||||
else if((last = strrchr(buf[i], '\n')))
|
||||
*last = '\0';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue