Fix crash when using include_recursive in an object definition

fixes #12022
This commit is contained in:
Gunnar Beutner 2016-06-22 17:01:36 +02:00
parent 2de249ed65
commit 906ab613f3
1 changed files with 4 additions and 1 deletions

View File

@ -180,7 +180,10 @@ Expression *ConfigCompiler::HandleIncludeRecursive(const String& relativeBase, c
std::vector<Expression *> expressions;
Utility::GlobRecursive(ppath, pattern, boost::bind(&ConfigCompiler::CollectIncludes, boost::ref(expressions), _1, zone, package), GlobFile);
return new DictExpression(expressions);
DictExpression *dict = new DictExpression(expressions);
dict->MakeInline();
return dict;
}
void ConfigCompiler::HandleIncludeZone(const String& relativeBase, const String& tag, const String& path, const String& pattern, const String& package, std::vector<Expression *>& expressions)