Commit 3545c35d authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml/tests: Fix VariantClear on uninitialized variable.

parent 79a2fb71
...@@ -3672,6 +3672,8 @@ static LONG test_attr_collection_attr(IDispatch *attr, LONG i) ...@@ -3672,6 +3672,8 @@ static LONG test_attr_collection_attr(IDispatch *attr, LONG i)
VARIANT val; VARIANT val;
BSTR name; BSTR name;
V_VT(&val) = VT_EMPTY;
hres = IDispatch_QueryInterface(attr, &IID_IHTMLDOMAttribute, (void**)&dom_attr); hres = IDispatch_QueryInterface(attr, &IID_IHTMLDOMAttribute, (void**)&dom_attr);
ok(hres == S_OK, "%ld) QueryInterface failed: %08lx\n", i, hres); ok(hres == S_OK, "%ld) QueryInterface failed: %08lx\n", i, hres);
......
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