mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-16 09:35:16 +00:00
conf: fix uninitialized variable in virDomainListSnapshots
If allocation of names fails, list is uninitialized. (cherry picked from commit 892582f9deb1a4c4200a3d0bdfe6a2a94b039ef2)
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…
x
Reference in New Issue
Block a user