From 4bbac0f9b9fa681bc6dba34515e32942c5b3f4c7 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 11 Apr 2016 16:06:07 +0200 Subject: [PATCH] conf: disk: Don't initialize fields allocated by calloc All the fields were initialized to 0. --- src/conf/domain_conf.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index a3739e7df4..fb5d327752 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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"); -- GitLab