Make sure 'val.p' is always initialized, even when the union holds a shorter type. b=409294 r+sr=benjamin a=mtschrep

git-svn-id: svn://10.0.0.236/trunk@243544 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net 2008-01-19 17:03:25 +00:00
parent 38e5bc74b5
commit 5e745e7f9b

View File

@ -128,6 +128,7 @@ struct nsXPTCVariant : public nsXPTCMiniVariant
else
{
ptr = nsnull;
val.p = nsnull; // make sure 'val.p' is always initialized
switch(t.TagPart()) {
case nsXPTType::T_I8: val.i8 = mv.val.i8; break;
case nsXPTType::T_I16: val.i16 = mv.val.i16; break;