mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
UNINIT_VAR() fixes
Restored self-initialization version of UNINIT_VAR() for all gcc versions. Fixed UNINIT_VAR() usage: it is supposed to be used along with declaration.
This commit is contained in:
@@ -2933,8 +2933,7 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item **cond)
|
||||
}
|
||||
if (i)
|
||||
{
|
||||
double selectivity_mult;
|
||||
UNINIT_VAR(selectivity_mult);
|
||||
double UNINIT_VAR(selectivity_mult);
|
||||
|
||||
/*
|
||||
There is at least 1-column prefix of columns whose selectivity has
|
||||
|
Reference in New Issue
Block a user