]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBlockNodeNameGetBackingChain: Shuffle around variable initialization
authorPeter Krempa <pkrempa@redhat.com>
Fri, 23 Jul 2021 08:39:54 +0000 (10:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Jul 2021 11:27:30 +0000 (13:27 +0200)
commit5a661107ab5a47211772f5f016a376b8cf27ba0c
treec747130dc16a397dc9d2745b521ddb097a5023cd
parent032af88d856dc7e5dfcaa9d4623e395677f87c25
qemuBlockNodeNameGetBackingChain: Shuffle around variable initialization

Allocate the hash tables first so tat the 'data' struct can be directly
initialized removing the need for a memset and two additional
assignments.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
src/qemu/qemu_block.c