mirror of https://github.com/Icinga/icinga2.git
Fix: Crash when there's a config error in the first line / first column.
Fixes #5893
This commit is contained in:
parent
a7136b6f5c
commit
d874cbfe5b
|
@ -34,6 +34,8 @@ using namespace icinga;
|
||||||
do { \
|
do { \
|
||||||
yylloc->Path = yyextra->GetPath(); \
|
yylloc->Path = yyextra->GetPath(); \
|
||||||
yylloc->FirstLine = yylineno; \
|
yylloc->FirstLine = yylineno; \
|
||||||
|
if (yycolumn < 1) \
|
||||||
|
yycolumn = 1; \
|
||||||
yylloc->FirstColumn = yycolumn; \
|
yylloc->FirstColumn = yycolumn; \
|
||||||
yylloc->LastLine = yylineno; \
|
yylloc->LastLine = yylineno; \
|
||||||
yylloc->LastColumn = yycolumn + yyleng - 1; \
|
yylloc->LastColumn = yycolumn + yyleng - 1; \
|
||||||
|
|
Loading…
Reference in New Issue