]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
qemu-img: fix img_compare() flags error path
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 26 Aug 2014 18:17:55 +0000 (19:17 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 29 Aug 2014 09:46:57 +0000 (10:46 +0100)
commitcbda016d94017fad3be1c657f0ad98f88395c12a
treebe0fe149fb53fc979541e1018300a25e69b8b19e
parenta3981eb978b76e75aca3d04f6c6e26de8322001b
qemu-img: fix img_compare() flags error path

If img_compare() fails to parse the cache flags the goto out3 code path
will call qemu_progress_end().  Make sure we actually call
qemu_progress_init() first.

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
qemu-img.c