]> granicus.if.org Git - icinga2/commitdiff
Fix DebugInfoRange for ApplyExpression in config parser
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 8 Jan 2015 16:00:13 +0000 (17:00 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 8 Jan 2015 16:00:13 +0000 (17:00 +0100)
fixes #8173

lib/config/config_parser.yy

index 2dcfa372206e66c93f2a88674eaaa45ef126a113..2abebd6f7c656d4cbc14c76200578472eef98be3 100644 (file)
@@ -1006,7 +1006,7 @@ apply:
                Expression *fterm = context->m_FTerm.top();
                context->m_FTerm.pop();
 
-               $$ = new ApplyExpression(type, target, $4, filter, fkvar, fvvar, fterm, $7, exprl, @$);
+               $$ = new ApplyExpression(type, target, $4, filter, fkvar, fvvar, fterm, $7, exprl, DebugInfoRange(@2, @7));
        }
        ;