mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02:00
Fix compile error: ‘cond_copy’ may be used uninitialized in this function.
This commit is contained in:
parent
2160a25adc
commit
42eeb557a6
1 changed files with 3 additions and 2 deletions
|
|
@ -19916,10 +19916,11 @@ static bool add_ref_to_table_cond(THD *thd, JOIN_TAB *join_tab)
|
|||
cond->fix_fields(thd, &tmp_item);
|
||||
DBUG_ASSERT(cond == tmp_item);
|
||||
}
|
||||
if (join_tab->select->pre_idx_push_select_cond)
|
||||
cond_copy= cond->copy_andor_structure(thd);
|
||||
if (join_tab->select)
|
||||
{
|
||||
UNINIT_VAR(cond_copy); // used when pre_idx_push_select_cond!=NULL
|
||||
if (join_tab->select->pre_idx_push_select_cond)
|
||||
cond_copy= cond->copy_andor_structure(thd);
|
||||
if (join_tab->select->cond)
|
||||
error=(int) cond->add(join_tab->select->cond);
|
||||
join_tab->select->cond= cond;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue