mshtml/tests: Fix VariantClear on uninitialized variable.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2023-12-06 20:16:34 +02:00 committed by Alexandre Julliard
parent 79a2fb719f
commit 3545c35d29

View file

@ -3672,6 +3672,8 @@ static LONG test_attr_collection_attr(IDispatch *attr, LONG i)
VARIANT val;
BSTR name;
V_VT(&val) = VT_EMPTY;
hres = IDispatch_QueryInterface(attr, &IID_IHTMLDOMAttribute, (void**)&dom_attr);
ok(hres == S_OK, "%ld) QueryInterface failed: %08lx\n", i, hres);