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:
Igor Babaev 2013-04-01 11:17:18 -07:00
parent e370530493
commit c9208300b4

View File

@ -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);