mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
valgrind error fix(uninitialiased variable)
removed unnecessary operation sql/sql_lex.cc: valgrind error fix(uninitialiased variable) sql/sql_parse.cc: removed unnecessary operation
This commit is contained in:
@ -164,7 +164,7 @@ void lex_start(THD *thd, uchar *buf,uint length)
|
|||||||
lex->current_select= &lex->select_lex;
|
lex->current_select= &lex->select_lex;
|
||||||
lex->yacc_yyss=lex->yacc_yyvs=0;
|
lex->yacc_yyss=lex->yacc_yyvs=0;
|
||||||
lex->ignore_space=test(thd->variables.sql_mode & MODE_IGNORE_SPACE);
|
lex->ignore_space=test(thd->variables.sql_mode & MODE_IGNORE_SPACE);
|
||||||
lex->sql_command=SQLCOM_END;
|
lex->sql_command= lex->orig_sql_command= SQLCOM_END;
|
||||||
lex->duplicates= DUP_ERROR;
|
lex->duplicates= DUP_ERROR;
|
||||||
lex->ignore= 0;
|
lex->ignore= 0;
|
||||||
lex->sphead= NULL;
|
lex->sphead= NULL;
|
||||||
|
@ -5189,7 +5189,6 @@ mysql_init_select(LEX *lex)
|
|||||||
{
|
{
|
||||||
SELECT_LEX *select_lex= lex->current_select;
|
SELECT_LEX *select_lex= lex->current_select;
|
||||||
select_lex->init_select();
|
select_lex->init_select();
|
||||||
lex->orig_sql_command= SQLCOM_END;
|
|
||||||
lex->wild= 0;
|
lex->wild= 0;
|
||||||
if (select_lex == &lex->select_lex)
|
if (select_lex == &lex->select_lex)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user