cryptui: Avoid reading unitialized variables (Coverity)

Frédéric Delanoy frederic.delanoy at gmail.com
Wed Dec 14 06:50:26 CST 2011


CID 4650-4651
---
 dlls/cryptui/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index 387b6c6..2b51599 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -854,7 +854,7 @@ static void cert_mgr_show_cert_usages(HWND hwnd, int index)
     HWND text = GetDlgItem(hwnd, IDC_MGR_PURPOSES);
     PCCERT_CONTEXT cert = cert_mgr_index_to_cert(hwnd, index);
     PCERT_ENHKEY_USAGE usage;
-    DWORD size;
+    DWORD size = 0;
 
     /* Get enhanced key usage.  Have to check for a property and an extension
      * separately, because CertGetEnhancedKeyUsage will succeed and return an
@@ -3413,7 +3413,7 @@ static void show_cert_usages(HWND hwnd, struct edit_cert_data *data)
     PCCERT_CONTEXT cert = data->cert;
     HWND lv = GetDlgItem(hwnd, IDC_CERTIFICATE_USAGES);
     PCERT_ENHKEY_USAGE usage;
-    DWORD size;
+    DWORD size = 0;
     RECT rc;
     LVCOLUMNW column;
     PurposeSelection purposeSelection = PurposeEnableAll;
-- 
1.7.8




More information about the wine-patches mailing list