mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
conf: domain: Don't initialize virTristateBool local variables used for virXMLPropTristateBool
virXMLPropTristateBool already initializes the value to VIR_TRISTATE_BOOL_ABSENT so we no longer need to do that for certain local variables. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
bb864e6aa0
commit
f66d7461d4
@ -12569,7 +12569,7 @@ virDomainGraphicsDefParseXMLSDL(virDomainGraphicsDef *def,
|
||||
{
|
||||
VIR_XPATH_NODE_AUTORESTORE(ctxt)
|
||||
xmlNodePtr glNode;
|
||||
virTristateBool fullscreen = VIR_TRISTATE_BOOL_NO;
|
||||
virTristateBool fullscreen;
|
||||
|
||||
ctxt->node = node;
|
||||
|
||||
@ -12640,7 +12640,7 @@ static int
|
||||
virDomainGraphicsDefParseXMLDesktop(virDomainGraphicsDef *def,
|
||||
xmlNodePtr node)
|
||||
{
|
||||
virTristateBool fullscreen = VIR_TRISTATE_BOOL_NO;
|
||||
virTristateBool fullscreen;
|
||||
|
||||
if (virXMLPropTristateBool(node, "fullscreen", VIR_XML_PROP_NONE,
|
||||
&fullscreen) < 0)
|
||||
@ -12662,7 +12662,7 @@ virDomainGraphicsDefParseXMLSpice(virDomainGraphicsDef *def,
|
||||
g_autofree xmlNodePtr *node_list = NULL;
|
||||
int n = 0;
|
||||
size_t i = 0;
|
||||
virTristateBool autoport = VIR_TRISTATE_BOOL_NO;
|
||||
virTristateBool autoport;
|
||||
xmlNodePtr cur;
|
||||
VIR_XPATH_NODE_AUTORESTORE(ctxt)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user