From 434700bf6b57bfabc86af20bc9a3f430ed84e36a Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 26 Mar 2012 11:52:47 +0200 Subject: [PATCH] vbscript: Init destination before passing it to VariantCopy in add_dynamic_var. --- dlls/vbscript/interp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/vbscript/interp.c b/dlls/vbscript/interp.c index df30e0e68cc..82e3724ffbf 100644 --- a/dlls/vbscript/interp.c +++ b/dlls/vbscript/interp.c @@ -229,6 +229,7 @@ static HRESULT add_dynamic_var(exec_ctx_t *ctx, const WCHAR *name, BOOL is_const if(own_val) { new_var->v = *val; }else { + V_VT(&new_var->v) = VT_EMPTY; hres = VariantCopy(&new_var->v, val); if(FAILED(hres)) return hres;