summaryrefslogtreecommitdiff
path: root/block/vdi.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2011-06-01 14:03:31 +0200
committerKevin Wolf <kwolf@redhat.com>2011-06-08 11:56:40 +0200
commitd220894e025ea85d604a2cdc1eef541ed516728e (patch)
tree2e79df2e4e08ca540f9b8ebeffb77e1fbe632be0 /block/vdi.c
parent80fa3341a70151d250be92ae900e3c1580817540 (diff)
downloadqemu-d220894e025ea85d604a2cdc1eef541ed516728e.tar.gz
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>
Diffstat (limited to 'block/vdi.c')
0 files changed, 0 insertions, 0 deletions