Joris Huizer : shlwapi: Fix ASSOC_GetExecutable not to use uninitialised variable.

Alexandre Julliard julliard at winehq.org
Fri Oct 17 07:25:37 CDT 2008


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

Author: Joris Huizer <joris_huizer at yahoo.com>
Date:   Wed Oct 15 00:13:44 2008 +0200

shlwapi: Fix ASSOC_GetExecutable not to use uninitialised variable.

---

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

diff --git a/dlls/shlwapi/assoc.c b/dlls/shlwapi/assoc.c
index 9e4b036..31a8420 100644
--- a/dlls/shlwapi/assoc.c
+++ b/dlls/shlwapi/assoc.c
@@ -603,7 +603,7 @@ static HRESULT ASSOC_GetExecutable(IQueryAssociationsImpl *This,
   LONG ret;
   WCHAR * pszCommand;
   WCHAR * pszEnd;
-  WCHAR * pszExtraFromReg;
+  WCHAR * pszExtraFromReg = NULL;
   WCHAR * pszFileType;
   WCHAR * pszStart;
   static const WCHAR commandW[] = { 'c','o','m','m','a','n','d',0 };




More information about the wine-cvs mailing list