]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuSnapshotCreateInactiveExternal: Don't access 'idx' of snapshot
authorPeter Krempa <pkrempa@redhat.com>
Mon, 21 Sep 2020 17:38:11 +0000 (19:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Sep 2020 20:37:56 +0000 (22:37 +0200)
commit1bb0faa51a1c364d0178adb01714f222d5442257
treea1d81264d958cb6617b39a622532d32c83d77857
parent2b150c4d5f56c2771bcca5d4160a13a7442cb16a
qemuSnapshotCreateInactiveExternal: Don't access 'idx' of snapshot

After virDomainSnapshotAlignDisks is called the definitions of disks in
the snapshot definition and in the domain definition are in the same
order so they can be addressed using the same index.

This frees up 'idx' to be removed later.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_snapshot.c