Biswapriyo Nath : mf/evr: Initialize variables which are checked conditionally.

Alexandre Julliard julliard at winehq.org
Tue Oct 27 16:43:50 CDT 2020


Module: wine
Branch: master
Commit: 8c51bcb8a1d4db65fa1df9d436dc31d4c2ed890d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8c51bcb8a1d4db65fa1df9d436dc31d4c2ed890d

Author: Biswapriyo Nath <nathbappai at gmail.com>
Date:   Sat Oct 24 18:27:27 2020 +0530

mf/evr: Initialize variables which are checked conditionally.

Signed-off-by: Biswapriyo Nath <nathbappai at gmail.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);




More information about the wine-cvs mailing list