Hans Leidekker : wintrust/tests: Initialize a variable.

Alexandre Julliard julliard at winehq.org
Fri Jul 3 09:31:10 CDT 2009


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Jul  3 11:31:36 2009 +0200

wintrust/tests: Initialize a variable.

---

 dlls/wintrust/tests/asn.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/wintrust/tests/asn.c b/dlls/wintrust/tests/asn.c
index 308fb8b..a4f4fbb 100644
--- a/dlls/wintrust/tests/asn.c
+++ b/dlls/wintrust/tests/asn.c
@@ -725,6 +725,7 @@ static void test_decodeCatNameValue(void)
     DWORD size;
     CAT_NAMEVALUE *value;
 
+    buf = NULL;
     ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT,
      emptyCatNameValue, sizeof(emptyCatNameValue),
      CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);
@@ -739,6 +740,7 @@ static void test_decodeCatNameValue(void)
          value->Value.cbData);
         LocalFree(buf);
     }
+    buf = NULL;
     ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT,
      catNameValueWithTag, sizeof(catNameValueWithTag),
      CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);
@@ -754,6 +756,7 @@ static void test_decodeCatNameValue(void)
          value->Value.cbData);
         LocalFree(buf);
     }
+    buf = NULL;
     ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT,
      catNameValueWithFlags, sizeof(catNameValueWithFlags),
      CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);
@@ -768,6 +771,7 @@ static void test_decodeCatNameValue(void)
          value->Value.cbData);
         LocalFree(buf);
     }
+    buf = NULL;
     ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT,
      catNameValueWithValue, sizeof(catNameValueWithValue),
      CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);




More information about the wine-cvs mailing list