From: Fam Zheng <f...@redhat.com> It will be assigned to the return value of vmdk_read_desc.
Suggested-by: Markus Armbruster <arm...@redhat.com> Signed-off-by: Fam Zheng <f...@redhat.com> Reviewed-by: Markus Armbruster <arm...@redhat.com> Reviewed-by: Don Koch <dk...@verizon.com> Reviewed-by: Max Reitz <mre...@redhat.com> Message-id: 1417649314-13704-6-git-send-email-f...@redhat.com Signed-off-by: Max Reitz <mre...@redhat.com> Signed-off-by: Kevin Wolf <kw...@redhat.com> --- block/vmdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/vmdk.c b/block/vmdk.c index b703395..da2d323 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -914,7 +914,7 @@ exit: static int vmdk_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { - char *buf = NULL; + char *buf; int ret; BDRVVmdkState *s = bs->opaque; uint32_t magic; -- 1.8.3.1