[MPlayer-cvslog] r19468 - trunk/parser-cfg.c
Diego Biurrun
diego at biurrun.de
Mon Aug 21 00:03:45 CEST 2006
On Sun, Aug 20, 2006 at 11:41:44PM +0200, diego wrote:
>
> Log:
> Fix stray newline that should only be printed in verbose mode.
>
> --- trunk/parser-cfg.c (original)
> +++ trunk/parser-cfg.c Sun Aug 20 23:41:44 2006
> @@ -73,7 +73,9 @@
> 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 @@
> ret = 0;
> goto out;
> }
> - mp_msg(MSGT_CFGPARSER,MSGL_INFO,"\n");
>
> while (fgets(line, MAX_LINE_LEN, fp)) {
> if (errors >= 16) {
This one has been my pet peeve since the dawn of time or so. Finally I
got it nailed ..
Diego
More information about the MPlayer-cvslog
mailing list