qemu-img: Fix segmentation fault
authorCharles Arnold <carnold@suse.com>
Fri, 11 May 2012 16:57:54 +0000 (10:57 -0600)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 May 2012 15:02:19 +0000 (17:02 +0200)
commitfa170c148b12f40e803af5b442d33f16add345a4
tree12da84cef4b15814c22fdc89caa228f94a72b549
parentc44bfe4637424a8f1b411b72a465951f104c29ea
qemu-img: Fix segmentation fault

The following command generates a segmentation fault.
qemu-img convert -O vpc -o ? test test2
This is because the 'goto out;' statement calls qemu_progress_end
before qemu_progress_init is called resulting in a NULL pointer
invocation.

Signed-off-by: Charles Arnold <carnold@suse.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c