mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-30 17:45:23 +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)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
int count = virDomainSnapshotObjListNum(snapshots, from, flags);
|
int count = virDomainSnapshotObjListNum(snapshots, from, flags);
|
||||||
virDomainSnapshotPtr *list;
|
virDomainSnapshotPtr *list = NULL;
|
||||||
char **names;
|
char **names;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user