diff options
Diffstat (limited to 'src/basic/bitmap.c')
-rw-r--r-- | src/basic/bitmap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/basic/bitmap.c b/src/basic/bitmap.c index 0747749d13..7e47c2d09f 100644 --- a/src/basic/bitmap.c +++ b/src/basic/bitmap.c @@ -140,12 +140,9 @@ bool bitmap_isclear(Bitmap *b) { } void bitmap_clear(Bitmap *b) { - unsigned i; - assert(b); - for (i = 0; i < b->n_bitmaps; i++) - b->bitmaps[i] = 0; + b->n_bitmaps = 0; } bool bitmap_iterate(Bitmap *b, Iterator *i, unsigned *n) { |