Browse Source

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 / ce7ffe61d8
pull/2657/head
Daniel Black 2 years ago
committed by Andrew Hutchings
parent
commit
2771890bab
  1. 2
      sql/opt_split.cc

2
sql/opt_split.cc

@ -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");
/*

Loading…
Cancel
Save