Commit d5adc29d authored by Michael Widenius's avatar Michael Widenius

Fixed compiler warnings

sql/key.cc:
  Fixed compiler warnings about not initialized variables
parent ff650ab0
......@@ -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)
......
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