Bug 34061. Fix uninitialized memory problems when called from nsXULDocument::AddSubtreeToDocument().

This commit is contained in:
waterson%netscape.com 2000-03-31 19:01:56 +00:00
Родитель c52dab758c
Коммит d29d5f9d44
2 изменённых файлов: 6 добавлений и 0 удалений

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

@ -2986,6 +2986,9 @@ nsXULElement::GetAttributeCount(PRInt32& aResult) const
else if (mPrototype) { else if (mPrototype) {
aResult = mPrototype->mNumAttributes; aResult = mPrototype->mNumAttributes;
} }
else {
aResult = 0;
}
return rv; return rv;
} }

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

@ -2986,6 +2986,9 @@ nsXULElement::GetAttributeCount(PRInt32& aResult) const
else if (mPrototype) { else if (mPrototype) {
aResult = mPrototype->mNumAttributes; aResult = mPrototype->mNumAttributes;
} }
else {
aResult = 0;
}
return rv; return rv;
} }