jscript: Don't assume that undefined variable is zeroed.

This commit is contained in:
Jacek Caban 2012-09-17 15:21:16 +02:00 committed by Alexandre Julliard
parent c4df88b7fa
commit 9e7829828e
1 changed files with 2 additions and 1 deletions

View File

@ -278,6 +278,7 @@ static HRESULT ensure_prop_name(jsdisp_t *This, const WCHAR *name, BOOL search_p
if(prop) {
prop->type = PROP_JSVAL;
prop->flags = create_flags;
prop->u.val = jsval_undefined();
}else {
prop = alloc_prop(This, name, PROP_JSVAL, create_flags);
if(!prop)