diff --git a/playlist.c b/playlist.c index c777fe11a4..42ee42f064 100644 --- a/playlist.c +++ b/playlist.c @@ -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'; }