Files
qemu-ios/block
Stefan Weil 1c224f0ab3 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>
(cherry picked from commit 514f21a5d4)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2012-10-11 21:44:16 -05:00
..
2012-10-11 21:44:16 -05:00
2012-08-06 22:39:14 +02:00
2012-07-09 15:53:02 +02:00
2012-10-11 21:44:16 -05:00
2012-10-11 21:44:16 -05:00
2012-08-15 10:48:57 +02:00