mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-20 18:03:50 +03:00
virDomainAudioCommonParse: Fix parsing of 'format'
Commit 38180f87f5b converted the code to use virXMLPropEnum unfaithfully ommitting the check where 'format' must be non-zero when parsed from the user. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
3a658e2d2f
commit
0bcd3eecbf
@ -13098,7 +13098,7 @@ virDomainAudioCommonParse(virDomainAudioIOCommon *def,
|
||||
|
||||
if (virXMLPropEnum(settings, "format",
|
||||
virDomainAudioFormatTypeFromString,
|
||||
VIR_XML_PROP_NONE, &def->format) < 0)
|
||||
VIR_XML_PROP_NONZERO, &def->format) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user