提交 7c523338 编写于 作者: P Perry Kundert

Remove unnnecessary NUL termination of yytext (as it may contain NULs)

上级 14ca1f6f
......@@ -1828,9 +1828,6 @@ class lexer
// closing quote
case '\"':
{
// terminate yytext
add('\0');
--yylen;
return token_type::value_string;
}
......@@ -2576,10 +2573,6 @@ scan_number_done:
// we are done scanning a number)
unget();
// terminate token
add('\0');
--yylen;
char* endptr = nullptr;
errno = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册