mirror of
https://github.com/libvirt/libvirt.git
synced 2026-07-29 23:58:02 -05:00
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:
committed by
John Ferlan
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"))) {
|
||||
|
||||
Reference in New Issue
Block a user