[PATCH 2/2] qemuSnapshotDiskContextNew: Don't set 'ndd'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



'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: 8c2ecdf131c
Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_snapshot.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c
index 63401db2a9..ca051071aa 100644
--- a/src/qemu/qemu_snapshot.c
+++ b/src/qemu/qemu_snapshot.c
@@ -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;
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux