mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemuSnapshotDiskContextNew: Don't set 'ndd'
'ndd' tracks the actual number of snapshot disks filled into the
structure and is incremented by the functions filling the context, thus
it must not be set when initializing the context.
Fixes: 8c2ecdf131
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6e514ea27c
commit
850f991897
@ -865,7 +865,6 @@ qemuSnapshotDiskContextNew(size_t ndisks,
|
||||
qemuSnapshotDiskContextPtr ret = g_new0(qemuSnapshotDiskContext, 1);
|
||||
|
||||
ret->dd = g_new0(qemuSnapshotDiskData, ndisks);
|
||||
ret->ndd = ndisks;
|
||||
ret->actions = virJSONValueNewArray();
|
||||
ret->vm = vm;
|
||||
ret->asyncJob = asyncJob;
|
||||
|
Loading…
Reference in New Issue
Block a user