From c6bc316e0471fec837109df9ef4c4e80c49ce9ba Mon Sep 17 00:00:00 2001 From: markwkidd Date: Sat, 10 Dec 2016 11:03:28 -0500 Subject: [PATCH] Update playlist.c --- playlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; }