Skip to content

Commit c79c62f

Browse files
author
Tor Didriksen
committed
Bug#22916059 BUILD ERROR DUE TO UNINITIALIZED VARIABLE IN OPT_RANGE.CC
Fix: init to zero
1 parent 29f4ed5 commit c79c62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/opt_range.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5768,7 +5768,7 @@ static TRP_RANGE *get_key_scans_params(PARAM *param, SEL_TREE *tree,
57685768
bool update_tbl_stats,
57695769
const Cost_estimate *cost_est)
57705770
{
5771-
uint idx, best_idx;
5771+
uint idx, best_idx= 0;
57725772
SEL_ARG *key, *key_to_read= NULL;
57735773
ha_rows best_records= 0; /* protected by key_to_read */
57745774
uint best_mrr_flags= 0, best_buf_size= 0;

0 commit comments

Comments
 (0)