mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
conf: fix uninitialized variable in virDomainListSnapshots
If allocation of names fails, list is uninitialized.
This commit is contained in:
parent
6e1fc35546
commit
892582f9de
@ -1021,7 +1021,7 @@ virDomainListSnapshots(virDomainSnapshotObjListPtr snapshots,
|
||||
unsigned int flags)
|
||||
{
|
||||
int count = virDomainSnapshotObjListNum(snapshots, from, flags);
|
||||
virDomainSnapshotPtr *list;
|
||||
virDomainSnapshotPtr *list = NULL;
|
||||
char **names;
|
||||
int ret = -1;
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user