mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03: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:
@ -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);
|
||||
|
Reference in New Issue
Block a user