Commit 2771890b authored by Daniel Black's avatar Daniel Black Committed by Andrew Hutchings

MDEV-31301 sql/opt_split.cc:1043:5: warning: ‘best_param_tables’ may be used uninitialized

The warning is true, it needs to be initialized.

Caused by: MDEV-26301 / ce7ffe61
parent 94e5b43f
......@@ -963,7 +963,7 @@ SplM_plan_info * JOIN_TAB::choose_best_splitting(uint idx,
SplM_plan_info *spl_plan= 0;
uint best_key= 0;
uint best_key_parts= 0;
table_map best_param_tables;
table_map best_param_tables= 0L;
Json_writer_object trace_obj(thd, "choose_best_splitting");
Json_writer_array trace_arr(thd, "considered_keys");
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment