[PATCH] version: initialize emptyW (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Jun 11 04:03:27 CDT 2011


Hi,

We semi expect this to be an empty string, so it should contain
0. CID 5117

Ciao, Marcus
---
 dlls/version/version.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/version/version.c b/dlls/version/version.c
index b31efd3..87d77e0 100644
--- a/dlls/version/version.c
+++ b/dlls/version/version.c
@@ -1189,7 +1189,7 @@ DWORD WINAPI VerFindFileW( DWORD flags,LPCWSTR lpszFilename,LPCWSTR lpszWinDir,
                            LPCWSTR lpszAppDir, LPWSTR lpszCurDir,PUINT lpuCurDirLen,
                            LPWSTR lpszDestDir,PUINT lpuDestDirLen )
 {
-    static const WCHAR emptyW;
+    static const WCHAR emptyW = 0;
     DWORD retval = 0;
     const WCHAR *curDir;
     const WCHAR *destDir;
-- 
1.7.3.4




More information about the wine-patches mailing list