summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2013-07-17 17:46:16 +0300
committerunknown <sanja@montyprogram.com>2013-07-17 17:46:16 +0300
commit8a23ae088dc38f591efeab9eccdef5eb9094add9 (patch)
treedcaa5149e8c210f92a077f2f8bec098e46c8648f
parent18cb29d43254e5f065bbbe180917231650c2e5a7 (diff)
downloadmariadb-git-8a23ae088dc38f591efeab9eccdef5eb9094add9.tar.gz
MDEV-4647: Valgrind warnings (Conditional jump or move depends on uninitialised value) in Item_equal::fix_fields
Fix to calm down valgrind.
-rw-r--r--sql/item_cmpfunc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 057d75676dc..122505ab265 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -5953,8 +5953,8 @@ bool Item_equal::fix_fields(THD *thd, Item **ref)
DBUG_ASSERT(fixed == 0);
Item_equal_fields_iterator it(*this);
Item *item;
- Field *first_equal_field;
- Field *last_equal_field;
+ Field *first_equal_field= NULL;
+ Field *last_equal_field= NULL;
Field *prev_equal_field= NULL;
not_null_tables_cache= used_tables_cache= 0;
const_item_cache= 0;