mscoree: Correct possible uninitialized variable (clang)

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Thu Jun 7 07:01:48 CDT 2012


Hi,


Changelog:
     mscoree: Correct possible uninitialized variable (clang)


Best Regards
  Alistair Leslie-Hughes
-------------- next part --------------
>From 6fc805f14cb7d2074711d484e2ec8cc6f6bb5662 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Tue, 31 Jan 2012 18:56:53 +1100
Subject: [PATCH] Correct possible uninitialized variable (clang)
To: wine-patches <wine-patches at winehq.org>

---
 dlls/mscoree/corruntimehost.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index ff789d4..4f2a586 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -954,7 +954,7 @@ HRESULT create_monodata(REFIID riid, LPVOID *ppObj )
     WCHAR path[CHARS_IN_GUID + ARRAYSIZE(wszCLSIDSlash) + ARRAYSIZE(wszInprocServer32) - 1];
     MonoDomain *domain;
     MonoAssembly *assembly;
-    ICLRRuntimeInfo *info;
+    ICLRRuntimeInfo *info = NULL;
     RuntimeHost *host;
     HRESULT hr;
     HKEY key;
-- 
1.7.5.4



More information about the wine-patches mailing list