[MPlayer-cvslog] r34256 - trunk/parser-cfg.c

reimar subversion at mplayerhq.hu
Tue Oct 25 21:22:11 CEST 2011


Author: reimar
Date: Tue Oct 25 21:22:10 2011
New Revision: 34256

Log:
Make include recursion depth actually have some effect.
Not working yet though, needs another change to really work properly.

Modified:
   trunk/parser-cfg.c

Modified: trunk/parser-cfg.c
==============================================================================
--- trunk/parser-cfg.c	Tue Oct 25 21:20:38 2011	(r34255)
+++ trunk/parser-cfg.c	Tue Oct 25 21:22:10 2011	(r34256)
@@ -79,7 +79,7 @@ int m_config_parse_config_file(m_config_
 #endif
 	mp_msg(MSGT_CFGPARSER,MSGL_V,"Reading config file %s", conffile);
 
-	if (recursion_depth > MAX_RECURSION_DEPTH) {
+	if (++recursion_depth > MAX_RECURSION_DEPTH) {
 		mp_msg(MSGT_CFGPARSER,MSGL_ERR,": too deep 'include'. check your configfiles\n");
 		ret = -1;
 		goto out;


More information about the MPlayer-cvslog mailing list