# HG changeset patch # User reimar # Date 1319570530 0 # Node ID 55abe512548204357d65894249ccb01cba76a675 # Parent 131d0e04a50b737d7171779484b93690c1c4b4ab Make include recursion depth actually have some effect. Not working yet though, needs another change to really work properly. diff -r 131d0e04a50b -r 55abe5125482 parser-cfg.c --- 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;