On Wed, Oct 26, 2011 at 4:31 PM, Kevin Wolf <kw...@redhat.com> wrote:
> In error cases, cid is never set.
>
> Signed-off-by: Kevin Wolf <kw...@redhat.com>

This fix is already in the qemu-trivial queue:
http://repo.or.cz/w/qemu/stefanha.git/commit/8379e46d1fd681b8aa4714382e2cdab05e5d0575

-- 
Pavel

> ---
>  block/vmdk.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/block/vmdk.c b/block/vmdk.c
> index 6be592f..6cdbfb7 100644
> --- 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;
> --
> 1.7.6.4
>
>
>

Reply via email to