Fix: Crash when there's a config error in the first line / first column.

Fixes #5893
This commit is contained in:
Gunnar Beutner 2014-03-31 09:39:49 +02:00
parent a7136b6f5c
commit d874cbfe5b
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ using namespace icinga;
do { \
yylloc->Path = yyextra->GetPath(); \
yylloc->FirstLine = yylineno; \
if (yycolumn < 1) \
yycolumn = 1; \
yylloc->FirstColumn = yycolumn; \
yylloc->LastLine = yylineno; \
yylloc->LastColumn = yycolumn + yyleng - 1; \