Commit d1192eb8 authored by Jon Olav Hauglid's avatar Jon Olav Hauglid

Followup to Bug #11752069 (former bug 43152)

Assertion `bitmap_is_set_all(&table->s->all_set)' failed in
handler::ha_reset

This followup fixes the compilation warning
  'test_bit' may be used uninitialized in this function
introduced by the previous patch.
parent ba5b9734
...@@ -253,7 +253,7 @@ my_bool test_count_bits_set(MY_BITMAP *map, uint bitsize) ...@@ -253,7 +253,7 @@ my_bool test_count_bits_set(MY_BITMAP *map, uint bitsize)
my_bool test_get_first_bit(MY_BITMAP *map, uint bitsize) my_bool test_get_first_bit(MY_BITMAP *map, uint bitsize)
{ {
uint i, test_bit; uint i, test_bit= 0;
uint no_loops= bitsize > 128 ? 128 : bitsize; uint no_loops= bitsize > 128 ? 128 : bitsize;
bitmap_set_all(map); bitmap_set_all(map);
......
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