mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
qemuBlockBitmapsHandleCommitFinish: Use proper variable to iterate
The function repeatedly checked the first element rather than iterating through the array. Reported-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Tested-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
061057e754
commit
7a16318855
@ -3177,7 +3177,7 @@ qemuBlockBitmapsHandleCommitFinish(virStorageSourcePtr topsrc,
|
||||
char **disabledbitmaps;
|
||||
|
||||
for (disabledbitmaps = disabledBitmapsBase; *disabledbitmaps; disabledbitmaps++) {
|
||||
if (STREQ(*disabledBitmapsBase, bitmap->name)) {
|
||||
if (STREQ(*disabledbitmaps, bitmap->name)) {
|
||||
bitmapdata = g_new0(struct qemuBlockBitmapsHandleCommitData, 1);
|
||||
|
||||
bitmapdata->create = false;
|
||||
|
Loading…
Reference in New Issue
Block a user