]> xenbits.xensource.com Git - libvirt.git/commit
conf: virsecretobj: fix g_new0 allocation
authorPavel Hrdina <phrdina@redhat.com>
Mon, 12 Oct 2020 17:54:36 +0000 (19:54 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 13 Oct 2020 07:10:11 +0000 (09:10 +0200)
commit71a6522e4fb88b6112cb4df608fec920285c148c
treeb3f59befe2907cff3496dbebcd89dd066c060f48
parent8a666dccda7d183629fec43e493dd0f702f59c1b
conf: virsecretobj: fix g_new0 allocation

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

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