summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-04-01 12:04:59 +0300
committerMichael Widenius <monty@askmonty.org>2011-04-01 12:04:59 +0300
commitd5adc29d1c39027c827074f936d3f28e71f87800 (patch)
tree9d5eb6083085b74b284cbf9049974c53bab63fc4 /sql/key.cc
parentff650ab048d66e03cf273ab98a09fd90ed075168 (diff)
downloadmariadb-git-d5adc29d1c39027c827074f936d3f28e71f87800.tar.gz
Fixed compiler warnings
sql/key.cc: Fixed compiler warnings about not initialized variables
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 19db7e9ec1f..f7966140cdf 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -652,6 +652,9 @@ ulong key_hashnr(KEY *key_info, uint used_key_parts, const uchar *key)
uint length, pack_length;
bool is_string= TRUE;
LINT_INIT(cs);
+ LINT_INIT(length);
+ LINT_INIT(pack_length);
+
key+= key_part->length;
if (key_part->null_bit)
{
@@ -756,6 +759,9 @@ bool key_buf_cmp(KEY *key_info, uint used_key_parts,
uint length1, length2, pack_length;
bool is_string= TRUE;
LINT_INIT(cs);
+ LINT_INIT(length1);
+ LINT_INIT(length2);
+
key1+= key_part->length;
key2+= key_part->length;
if (key_part->null_bit)