From c9208300b46d7bed95a2be4f19ee51b60fb2c6ba Mon Sep 17 00:00:00 2001 From: Igor Babaev Date: Mon, 1 Apr 2013 11:17:18 -0700 Subject: [PATCH] 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. --- sql/sql_statistics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index 736fb3e1f91..6c33b88d9ad 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -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);