mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-04 02:45:22 +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)
|
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…
x
Reference in New Issue
Block a user