From 2771890bab51f716c36541e51940b8b056ca6933 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 18 May 2023 12:08:40 +1000 Subject: [PATCH] =?UTF-8?q?MDEV-31301=20sql/opt=5Fsplit.cc:1043:5:=20warni?= =?UTF-8?q?ng:=20=E2=80=98best=5Fparam=5Ftables=E2=80=99=20may=20be=20used?= =?UTF-8?q?=20uninitialized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The warning is true, it needs to be initialized. Caused by: MDEV-26301 / ce7ffe61d836 --- sql/opt_split.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/opt_split.cc b/sql/opt_split.cc index 6d816552baf..3b3658cb66b 100644 --- a/sql/opt_split.cc +++ b/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"); /*