Skip to content

Commit ceed768

Browse files
committed
MDEV-25362 after-merge fix: GCC -Og -Wmaybe-uninitialized
1 parent a0588d5 commit ceed768

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/sql_parse.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7606,16 +7606,15 @@ mysql_new_select(LEX *lex, bool move_down, SELECT_LEX *select_lex)
76067606
THD *thd= lex->thd;
76077607
bool new_select= select_lex == NULL;
76087608
int old_nest_level= lex->current_select->nest_level;
7609+
Name_resolution_context *curr_context= lex->context_stack.head();
76097610
DBUG_ENTER("mysql_new_select");
7610-
Name_resolution_context *curr_context;
76117611

76127612
if (new_select)
76137613
{
76147614
if (!(select_lex= new (thd->mem_root) SELECT_LEX()))
76157615
DBUG_RETURN(1);
76167616
select_lex->select_number= ++thd->lex->stmt_lex->current_select_number;
76177617
select_lex->parent_lex= lex; /* Used in init_query. */
7618-
curr_context= lex->context_stack.head();
76197618
select_lex->init_query();
76207619
select_lex->init_select();
76217620
}

0 commit comments

Comments
 (0)