Remove unnnecessary NUL termination of yytext (as it may contain NULs)
This commit is contained in:
parent
14ca1f6f09
commit
7c523338c5
1 changed files with 0 additions and 7 deletions
|
@ -1828,9 +1828,6 @@ class lexer
|
||||||
// closing quote
|
// closing quote
|
||||||
case '\"':
|
case '\"':
|
||||||
{
|
{
|
||||||
// terminate yytext
|
|
||||||
add('\0');
|
|
||||||
--yylen;
|
|
||||||
return token_type::value_string;
|
return token_type::value_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2576,10 +2573,6 @@ scan_number_done:
|
||||||
// we are done scanning a number)
|
// we are done scanning a number)
|
||||||
unget();
|
unget();
|
||||||
|
|
||||||
// terminate token
|
|
||||||
add('\0');
|
|
||||||
--yylen;
|
|
||||||
|
|
||||||
char* endptr = nullptr;
|
char* endptr = nullptr;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue