mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
conf: disk: Don't initialize fields allocated by calloc
All the fields were initialized to 0.
This commit is contained in:
parent
dcf02a704f
commit
4bbac0f9b9
@ -6742,14 +6742,6 @@ virDomainDiskDefParseXML(virDomainXMLOptionPtr xmlopt,
|
||||
if (!(def = virDomainDiskDefNew(xmlopt)))
|
||||
return NULL;
|
||||
|
||||
def->geometry.cylinders = 0;
|
||||
def->geometry.heads = 0;
|
||||
def->geometry.sectors = 0;
|
||||
def->geometry.trans = VIR_DOMAIN_DISK_TRANS_DEFAULT;
|
||||
|
||||
def->blockio.logical_block_size = 0;
|
||||
def->blockio.physical_block_size = 0;
|
||||
|
||||
ctxt->node = node;
|
||||
|
||||
type = virXMLPropString(node, "type");
|
||||
|
Loading…
x
Reference in New Issue
Block a user