mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Make sure 'val.p' is always initialized, even when the union holds a shorter type. b=409294 r+sr=benjamin a=mtschrep
This commit is contained in:
parent
cc2f2427fc
commit
bcaeaafb1e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user