summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@oracle.com>2011-02-16 18:19:10 +0100
committerJon Olav Hauglid <jon.hauglid@oracle.com>2011-02-16 18:19:10 +0100
commitd1192eb8ee11536b9b042f0ced1daa2bab25e68c (patch)
treeffe3453e487f4ef13781f837c34973b43c021730 /unittest
parentba5b97343c8a2b6a38a24e9e762d5a3f2a30b576 (diff)
downloadmariadb-git-d1192eb8ee11536b9b042f0ced1daa2bab25e68c.tar.gz
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.
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mysys/bitmap-t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/mysys/bitmap-t.c b/unittest/mysys/bitmap-t.c
index d5c1791ca14..d0df9fbb040 100644
--- a/unittest/mysys/bitmap-t.c
+++ b/unittest/mysys/bitmap-t.c
@@ -253,7 +253,7 @@ error2:
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;
bitmap_set_all(map);