MDEV-4742 fixup: g++-14 -Wmaybe-uninitialized
to_natsort_key(): Zero-initialize also num_start. This silences a compiler warning. There is no impact on correctness, because before the first read of num_start, !n_digits would always hold and hence num_start would have been initialized.
This commit is contained in:
parent
f146ba82c4
commit
82ba486e54
@ -5761,7 +5761,7 @@ static NATSORT_ERR to_natsort_key(const String *in, String *out,
|
||||
{
|
||||
size_t n_digits= 0;
|
||||
size_t n_lead_zeros= 0;
|
||||
size_t num_start;
|
||||
size_t num_start= 0;
|
||||
size_t reserve_length= std::min(
|
||||
natsort_max_key_size(in->length()) + MAX_BIGINT_WIDTH + 2, max_key_size);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user