From af8b8d2fa466a9bc122e3eddc0125aaa185e25a1 Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 20 Aug 2006 21:41:44 +0000 Subject: [PATCH] Fix stray newline that should only be printed in verbose mode. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19468 b3059339-0415-0410-9bf9-f77b7e298cf2 --- parser-cfg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parser-cfg.c b/parser-cfg.c index c792ced3ac..02b6337d1a 100644 --- a/parser-cfg.c +++ b/parser-cfg.c @@ -73,7 +73,9 @@ int m_config_parse_config_file(m_config_t* config, char *conffile) mp_msg(MSGT_CFGPARSER,MSGL_FATAL,"\ncan't get memory for 'line': %s", strerror(errno)); ret = -1; goto out; - } + } else + + mp_msg(MSGT_CFGPARSER,MSGL_V,"\n"); if ((fp = fopen(conffile, "r")) == NULL) { mp_msg(MSGT_CFGPARSER,MSGL_V,": %s\n", strerror(errno)); @@ -81,7 +83,6 @@ int m_config_parse_config_file(m_config_t* config, char *conffile) ret = 0; goto out; } - mp_msg(MSGT_CFGPARSER,MSGL_INFO,"\n"); while (fgets(line, MAX_LINE_LEN, fp)) { if (errors >= 16) {