提交 bac8d7b4 编写于 作者: K Kevin Wolf

vmdk: Fix use of uninitialised value

In error cases, cid is never set.
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 fb60105d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册