projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb60105
)
vmdk: Fix use of uninitialised value
author
Kevin Wolf
<kwolf@redhat.com>
Wed, 26 Oct 2011 10:22:40 +0000
(12:22 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:49 +0000
(19:25 +0200)
In error cases, cid is never set.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c
patch
|
blob
|
history
diff --git
a/block/vmdk.c
b/block/vmdk.c
index 6be592ffd61fcc03f806ce328fea195e186bb347..6cdbfb791e45f1a4c47800b57c61a171b88f2ebf 100644
(file)
--- a/
block/vmdk.c
+++ b/
block/vmdk.c
@@
-208,7
+208,7
@@
static void vmdk_free_last_extent(BlockDriverState *bs)
static uint32_t vmdk_read_cid(BlockDriverState *bs, int parent)
{
char desc[DESC_SIZE];
- uint32_t cid;
+ uint32_t cid
= 0
;
const char *p_name, *cid_str;
size_t cid_str_size;
BDRVVmdkState *s = bs->opaque;