mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-28 08:35:22 +00:00
conf: fix uninitialized variable in virDomainListSnapshots
If allocation of names fails, list is uninitialized.
(cherry picked from commit 892582f9de
)
This commit is contained in:
parent
e8d28ec3fa
commit
2f4d266d1f
@ -935,7 +935,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