diff options
author | Explorer09 <explorer09@gmail.com> | 2019-11-04 11:05:39 +0800 |
---|---|---|
committer | Explorer09 <explorer09@gmail.com> | 2021-06-07 09:30:46 +0800 |
commit | 60c4453b6ac1e29dbe039216ed948108eb9c6701 (patch) | |
tree | c7537341849ab07d41f3d4a7bb4f6f5f495f2353 /ONEWS | |
parent | c26cd7bc13b30fcfafe394330f3fe70672d9e47a (diff) | |
download | flex-git-60c4453b6ac1e29dbe039216ed948108eb9c6701.tar.gz |
scanner: Fix compiler confusion in yy_init_buffer()
When complied with 'gcc -O3', the yy_init_buffer call can confuse gcc,
thinking the 'b' pointer may be NULL. (gcc would warn that if
'-Wnull-dereference' is used). Fix the confusion by never pass a NULL
constant to the function.
Fixes: #377
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'ONEWS')
0 files changed, 0 insertions, 0 deletions