]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Do not assume comma after object id
authorHan Han <hhan@redhat.com>
Thu, 9 Jan 2020 08:00:06 +0000 (16:00 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 24 Jan 2020 16:03:29 +0000 (17:03 +0100)
commit1bd17918b63225ef19ab85fb364c27ed88254503
tree1ddd252ac5c3d4fd2bca211e260b70715b95c38b
parent9378713f565fb3a6725e6050bb8bf126a91ea220
util: Do not assume comma after object id

For qemu object like rng-builtin, there are no properties after id
property. We should always set comma after object id. Otherwise it will
cause trailing comma on object:
    -object rng-builtin,id=ID,

Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virqemu.c