From 8c51bcb8a1d4db65fa1df9d436dc31d4c2ed890d Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <nathbappai@gmail.com> Date: Sat, 24 Oct 2020 18:09:27 +0530 Subject: [PATCH] mf/evr: Initialize variables which are checked conditionally. Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> --- dlls/mf/evr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/mf/evr.c b/dlls/mf/evr.c index e408b204304..4dca8515c94 100644 --- a/dlls/mf/evr.c +++ b/dlls/mf/evr.c @@ -2057,8 +2057,8 @@ static const IMFAttributesVtbl video_renderer_attributes_vtbl = static HRESULT evr_create_object(IMFAttributes *attributes, void *user_context, IUnknown **obj) { struct video_renderer *object; - IMFVideoPresenter *presenter; - IMFTransform *mixer; + IMFVideoPresenter *presenter = NULL; + IMFTransform *mixer = NULL; HRESULT hr; TRACE("%p, %p, %p.\n", attributes, user_context, obj); -- GitLab