[regedit] Initialize a variable (Coverity) (Resend)

Paul Vriens paul.vriens.wine at gmail.com
Mon Oct 23 14:30:58 CDT 2006


Hi,

(This time it should apply cleanly.)

make sure we always close a 'known' key.

Should close CID-405.

Changelog
   Initialize a variable

Cheers,

Paul.

---
 programs/regedit/edit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/regedit/edit.c b/programs/regedit/edit.c
index 1741672..a834966 100644
--- a/programs/regedit/edit.c
+++ b/programs/regedit/edit.c
@@ -246,7 +246,7 @@ BOOL CreateKey(HWND hwnd, HKEY hKeyRoot,
 {
     BOOL result = FALSE;
     LONG lRet = ERROR_SUCCESS;
-    HKEY retKey;
+    HKEY retKey = NULL;
     TCHAR newKey[MAX_NEW_KEY_LEN - 4];
     int keyNum;
     HKEY hKey;
-- 
1.4.3




More information about the wine-patches mailing list