changeset 34168:55abe5125482

Make include recursion depth actually have some effect. Not working yet though, needs another change to really work properly.
author reimar
date Tue, 25 Oct 2011 19:22:10 +0000
parents 131d0e04a50b
children 9b617726812c
files parser-cfg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/parser-cfg.c	Tue Oct 25 19:20:38 2011 +0000
+++ b/parser-cfg.c	Tue Oct 25 19:22:10 2011 +0000
@@ -79,7 +79,7 @@
 #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;