Module: wine Branch: master Commit: 6d8c6c5a3ac709ff537f438414950c777e698fa5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6d8c6c5a3ac709ff537f438414... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jun 11 15:00:11 2007 +0200 msxml: Don't use VariantClear on an uninitialized variant. --- dlls/msxml3/xmlelem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msxml3/xmlelem.c b/dlls/msxml3/xmlelem.c index b4fa1e7..cf2a21a 100644 --- a/dlls/msxml3/xmlelem.c +++ b/dlls/msxml3/xmlelem.c @@ -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)