Commit c9208300 authored by Igor Babaev's avatar Igor Babaev

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.
parent e3705304
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment