Fix bug 307293: make sure we initialize the mType and mTag members of nsNSSASN1Object. r=wtchang, sr=rrelyea.

This commit is contained in:
smfr%smfr.org 2005-09-16 18:57:55 +00:00
Родитель fc89bd8e0f
Коммит 3d76d4e597
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -241,7 +241,9 @@ CreateFromDER(unsigned char *data,
return rv;
}
nsNSSASN1Sequence::nsNSSASN1Sequence() : mIsValidContainer(PR_TRUE),
nsNSSASN1Sequence::nsNSSASN1Sequence() : mType(0),
mTag(0),
mIsValidContainer(PR_TRUE),
mIsExpanded(PR_TRUE)
{
/* member initializers and constructor code */
@ -358,7 +360,9 @@ nsNSSASN1Sequence::SetIsExpanded(PRBool aIsExpanded)
}
nsNSSASN1PrintableItem::nsNSSASN1PrintableItem() : mData(nsnull),
nsNSSASN1PrintableItem::nsNSSASN1PrintableItem() : mType(0),
mTag(0),
mData(nsnull),
mLen(0)
{
/* member initializers and constructor code */