mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
1071592e65
commit
921d61575d
|
@ -6188,7 +6188,7 @@ virDomainDeviceBootParseXML(xmlNodePtr node,
|
|||
virHashTablePtr bootHash)
|
||||
{
|
||||
char *order;
|
||||
char *loadparm;
|
||||
char *loadparm = NULL;
|
||||
int ret = -1;
|
||||
|
||||
if (!(order = virXMLPropString(node, "order"))) {
|
||||
|
|
Loading…
Reference in New Issue