conf: fix use of uninitialized variable

If same boot order is specified twice (or more) in domain xml
we call free for uninitiaziled loadparm on cleanup in virDomainDeviceBootParseXML
and SIGABRT (or similar) as a result.
This commit is contained in:
Nikolay Shirokovskiy 2017-10-17 16:56:33 +03:00 committed by John Ferlan
parent 1071592e65
commit 921d61575d
1 changed files with 1 additions and 1 deletions

View File

@ -6188,7 +6188,7 @@ virDomainDeviceBootParseXML(xmlNodePtr node,
virHashTablePtr bootHash)
{
char *order;
char *loadparm;
char *loadparm = NULL;
int ret = -1;
if (!(order = virXMLPropString(node, "order"))) {