diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-08-17 15:23:24 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-12 15:50:09 +0200 |
commit | 514f21a5d4613e495adc2e2dd48f18091454efb8 (patch) | |
tree | ee06562751826d5484a65f78e566427012e8c753 /tcg/i386 | |
parent | 45724d6d02383b0d7d4a90e05787fca7c55cb070 (diff) | |
download | qemu-514f21a5d4613e495adc2e2dd48f18091454efb8.zip qemu-514f21a5d4613e495adc2e2dd48f18091454efb8.tar.gz qemu-514f21a5d4613e495adc2e2dd48f18091454efb8.tar.bz2 |
vdi: Fix warning from clang
ccc-analyzer reports these warnings:
block/vdi.c:704:13: warning: Dereference of null pointer
bmap[i] = VDI_UNALLOCATED;
^
block/vdi.c:702:13: warning: Dereference of null pointer
bmap[i] = i;
^
Moving some code into the if block fixes this.
It also avoids calling function write with 0 bytes of data.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tcg/i386')
0 files changed, 0 insertions, 0 deletions