yylex: use grub_fatal for exit.
lexer calls yylex_fatal on fatal internal errors. yylex_fatal itself is declared as noreturn and calls exit. Returning from noreturn function has unpredictable consequences.
This commit is contained in:
parent
e5c9300191
commit
342d6edb97
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ typedef size_t yy_size_t;
|
||||||
#define stdout 0
|
#define stdout 0
|
||||||
|
|
||||||
#define fprintf(...) 0
|
#define fprintf(...) 0
|
||||||
#define exit(...)
|
#define exit(...) grub_fatal("fatal error in lexer")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue