From 6ac6e38c285e70183db615206dde86cd0dbed652 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 11 Mar 2008 14:44:19 +0000 Subject: Fix handling of comments in input.c, current code had useless ifs and in addition could treat more data as comments than correct. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26222 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index de31ccd20e..72db4f98bd 100644 --- a/input/input.c +++ b/input/input.c @@ -1574,11 +1574,9 @@ mp_input_parse_config(char *file) { } iter++; r = strlen(iter); - if(r) - memmove(buffer,iter,r+1); + memmove(buffer,iter,r+1); bs = r+1; - if(iter[0] != '#') - comments = 0; + comments = 0; continue; } -- cgit v1.2.3