On a Friday in 2020, Peter Krempa wrote:
virBitmapNewEmpty() can create a bitmap with 0 lenght. With such a
*length
bitmap virBitmapToString will return NULL rather than an empty
string.
Initialize the buffer to avoid that.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/util/virbitmap.c | 3 +++
1 file changed, 3 insertions(+)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano