]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virBitmapIsBitSet: Allow NULL bitmap
authorPeter Krempa <pkrempa@redhat.com>
Wed, 9 Nov 2022 15:54:56 +0000 (16:54 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 6 Feb 2023 08:14:00 +0000 (09:14 +0100)
commitf836947a918edef5ef0b633ac727c983692af62a
tree713b7a57bdcfc8bfa46e904cabd181e50f2da814
parent9598c3c684f71357edae8200550c0c669f46fc7b
virBitmapIsBitSet: Allow NULL bitmap

The virBitmapIsBitSet API is a permissive one which returns false when
the bit is not set or is out of range. We can do the same if the bitmap
is NULL to aid certain situations when this can happen, but we don't
want to add extra checks.

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