]> git.proxmox.com Git - qemu.git/commit
bdrv_img_create: Fix segfault
authorKevin Wolf <kwolf@redhat.com>
Wed, 1 Jun 2011 12:03:31 +0000 (14:03 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Jun 2011 09:56:40 +0000 (11:56 +0200)
commitd220894e025ea85d604a2cdc1eef541ed516728e
tree2e79df2e4e08ca540f9b8ebeffb77e1fbe632be0
parent80fa3341a70151d250be92ae900e3c1580817540
bdrv_img_create: Fix segfault

Block drivers that don't support creating images don't have a size option. Fail
gracefully instead of segfaulting when trying to access the option's value.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c