提交 4bbac0f9 编写于 作者: P Peter Krempa

conf: disk: Don't initialize fields allocated by calloc

All the fields were initialized to 0.
上级 dcf02a70
...@@ -6742,14 +6742,6 @@ virDomainDiskDefParseXML(virDomainXMLOptionPtr xmlopt, ...@@ -6742,14 +6742,6 @@ virDomainDiskDefParseXML(virDomainXMLOptionPtr xmlopt,
if (!(def = virDomainDiskDefNew(xmlopt))) if (!(def = virDomainDiskDefNew(xmlopt)))
return NULL; 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; ctxt->node = node;
type = virXMLPropString(node, "type"); type = virXMLPropString(node, "type");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册