]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virBitmapNewCopy: Reimplement bitmap copying to prevent failure
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Oct 2020 08:22:18 +0000 (10:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2020 13:50:45 +0000 (15:50 +0200)
commit6b18cafb1dea4703f2ef9ec7f58b801a713b787f
tree282edf9ddef6b293ce5be9e4c0ef41462f9dd09c
parentcb6fdb012583bbd92d48d8709c6f3b1706748c66
virBitmapNewCopy: Reimplement bitmap copying to prevent failure

virBitmapCopy has a failure condition, which is impossible to meet when
creating a new copy. Copy the contents directly to make it obvious that
virBitmapNewCopy can't fail.

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