qemu-img: Fix division by zero for zero size images
authorKevin Wolf <kwolf@redhat.com>
Fri, 12 Oct 2012 12:29:18 +0000 (14:29 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 24 Oct 2012 08:26:18 +0000 (10:26 +0200)
commit1f71049523f4fc0738f96c74bfcce012521fa0f0
tree45ceeb7b60aa1c3690bb80b73d157c9f893a74cd
parenta8170e5e97ad17ca169c64ba87ae2f53850dab4c
qemu-img: Fix division by zero for zero size images

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-img.c