mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
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 { \
|
||||
yylloc->Path = yyextra->GetPath(); \
|
||||
yylloc->FirstLine = yylineno; \
|
||||
if (yycolumn < 1) \
|
||||
yycolumn = 1; \
|
||||
yylloc->FirstColumn = yycolumn; \
|
||||
yylloc->LastLine = yylineno; \
|
||||
yylloc->LastColumn = yycolumn + yyleng - 1; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user