]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: virbitmap: Don't forbid 0 size bitmap
authorPeter Krempa <pkrempa@redhat.com>
Thu, 1 Oct 2020 14:45:59 +0000 (16:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2020 10:57:46 +0000 (12:57 +0200)
commitee18110f932c197c0c081fc3762eb45d576fb204
treec9d97fbafa5862c97f63ef320abe36c7cc6ba6a6
parent5642508732f64821d8e28000dfc87eb85a8b50b2
util: virbitmap: Don't forbid 0 size bitmap

We now have APIs which automatically expand the bitmap and also API
which allocates a 0 size bitmap. Remove the condition from virBitmapNew.

Effectively reverts ce49cfb48ad

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virbitmap.c