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 <[email protected]>
---
src/util/virbitmap.c | 3 +++
1 file changed, 3 insertions(+)


Reviewed-by: Ján Tomko <[email protected]>

Jano

Attachment: signature.asc
Description: PGP signature

Reply via email to