diff --git a/src/conf/snapshot_conf.c b/src/conf/snapshot_conf.c index 0085352eba..7812dd50d2 100644 --- a/src/conf/snapshot_conf.c +++ b/src/conf/snapshot_conf.c @@ -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;