]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: explicitly set VIR_DOMAIN_VIDEO_TYPE_DEFAULT to 0
authorJonathon Jongsma <jjongsma@redhat.com>
Mon, 7 Nov 2022 15:34:55 +0000 (09:34 -0600)
committerJonathon Jongsma <jjongsma@redhat.com>
Wed, 8 Mar 2023 19:05:05 +0000 (13:05 -0600)
commit5cbc03210fe9f43cce4ad7f8aeff32655b527b40
tree8141e1970ecb4f369e0c9c464d2343b4649385c3
parent7e94712699546b0dc9ec8307b19a39775761627c
conf: explicitly set VIR_DOMAIN_VIDEO_TYPE_DEFAULT to 0

Ensure that new virDomainVideoDef objects have their 'type' set to
VIR_DOMAIN_VIDEO_TYPE_DEFAULT and remove places that this value is set
after construction. Since virDomainVideoDefNew() uses g_new0() allocate
the instance, all fields are initialized to 0.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h