[libvirt PATCH v6 1/8] conf: explicitly set VIR_DOMAIN_VIDEO_TYPE_DEFAULT to 0

Ján Tomko jtomko at redhat.com
Fri Mar 3 09:19:36 UTC 2023


On a Wednesday in 2023, Jonathon Jongsma wrote:
>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 at redhat.com>
>---
> src/conf/domain_conf.c | 3 ---
> src/conf/domain_conf.h | 2 +-
> 2 files changed, 1 insertion(+), 4 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230303/6c956348/attachment.sig>


More information about the libvir-list mailing list