mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
Fixed a valgrind complain on usage of an uninitialized value.
It popped up because the latest fix to handle properly null ranges was not complete.
This commit is contained in:
parent
e370530493
commit
c9208300b4
1 changed files with 1 additions and 1 deletions
|
|
@ -3386,7 +3386,7 @@ double get_column_range_cardinality(Field *field,
|
|||
{
|
||||
double sel, min_mp_pos, max_mp_pos;
|
||||
|
||||
if (min_endp)
|
||||
if (min_endp && !min_endp->key[0])
|
||||
{
|
||||
store_key_image_to_rec(field, (uchar *) min_endp->key,
|
||||
min_endp->length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue