]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Set alias for memory cell in qemuBuildMemoryCellBackendStr
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Nov 2017 14:12:33 +0000 (15:12 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Nov 2017 09:17:08 +0000 (10:17 +0100)
commitd52e6043bc5b19484ce5489345f9b9be61d95c1c
tree9f98b6e5f7072bb5358ef8f5022b968081269528
parentef7e6ee281e49d7132b85c0e5bc1cb2e0a5a5f99
qemu: Set alias for memory cell in qemuBuildMemoryCellBackendStr

Very soon qemuBuildMemoryBackendStr() is going to use memory cell
aliases. Therefore set one. At the same time, move it a bit
further - if virAsprintf() fails, there's no point in setting
rest of the members.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_command.c