Commit 44db8883 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wintrust/tests: Initialize a variable.

parent 91b6ebef
...@@ -725,6 +725,7 @@ static void test_decodeCatNameValue(void) ...@@ -725,6 +725,7 @@ static void test_decodeCatNameValue(void)
DWORD size; DWORD size;
CAT_NAMEVALUE *value; CAT_NAMEVALUE *value;
buf = NULL;
ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT, ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT,
emptyCatNameValue, sizeof(emptyCatNameValue), emptyCatNameValue, sizeof(emptyCatNameValue),
CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);
...@@ -739,6 +740,7 @@ static void test_decodeCatNameValue(void) ...@@ -739,6 +740,7 @@ static void test_decodeCatNameValue(void)
value->Value.cbData); value->Value.cbData);
LocalFree(buf); LocalFree(buf);
} }
buf = NULL;
ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT, ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT,
catNameValueWithTag, sizeof(catNameValueWithTag), catNameValueWithTag, sizeof(catNameValueWithTag),
CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);
...@@ -754,6 +756,7 @@ static void test_decodeCatNameValue(void) ...@@ -754,6 +756,7 @@ static void test_decodeCatNameValue(void)
value->Value.cbData); value->Value.cbData);
LocalFree(buf); LocalFree(buf);
} }
buf = NULL;
ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT, ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT,
catNameValueWithFlags, sizeof(catNameValueWithFlags), catNameValueWithFlags, sizeof(catNameValueWithFlags),
CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);
...@@ -768,6 +771,7 @@ static void test_decodeCatNameValue(void) ...@@ -768,6 +771,7 @@ static void test_decodeCatNameValue(void)
value->Value.cbData); value->Value.cbData);
LocalFree(buf); LocalFree(buf);
} }
buf = NULL;
ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT, ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, CAT_NAMEVALUE_STRUCT,
catNameValueWithValue, sizeof(catNameValueWithValue), catNameValueWithValue, sizeof(catNameValueWithValue),
CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment