msxml: Don't use VariantClear on an uninitialized variant.

This commit is contained in:
Alexandre Julliard 2007-06-11 15:00:11 +02:00
parent a781bbf096
commit 6d8c6c5a3a
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ static HRESULT WINAPI xmlelem_getAttribute(IXMLElement *iface, BSTR strPropertyN
if (!PropertyValue)
return E_INVALIDARG;
VariantClear(PropertyValue);
VariantInit(PropertyValue);
V_BSTR(PropertyValue) = NULL;
if (!strPropertyName)