]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: fix g_new0 allocation
authorPavel Hrdina <phrdina@redhat.com>
Mon, 12 Oct 2020 17:45:37 +0000 (19:45 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 13 Oct 2020 07:10:11 +0000 (09:10 +0200)
commit8a666dccda7d183629fec43e493dd0f702f59c1b
tree8b8a7983b7a7cab868177667546fd8967a4c23cb
parentaccdc0e7730739f398e392c23bc8380d3574a878
conf: fix g_new0 allocation

Fixes commit <a5d88ffe0ad9b5d5314ab0058c5b363f9f79b8ee> which changed
allocation from VIR_ALLOC_N to g_new0 but missed some +1 on number of
allocated elements.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/conf/virinterfaceobj.c
src/conf/virnetworkobj.c
src/conf/virnodedeviceobj.c