fixing crash caused by uninitialized variable

This commit is contained in:
bryner%netscape.com 2003-02-22 02:50:16 +00:00
Родитель 05f4441e0d
Коммит 01767033ad
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -155,7 +155,7 @@ nsTreeStyleCache::GetStyleContext(nsICSSPseudoComparator* aComparator,
// We're in a final state.
// Look up our style context for this state.
nsStyleContext* result;
nsStyleContext* result = nsnull;
if (mCache)
result = NS_STATIC_CAST(nsStyleContext*, mCache->Get(currState));
if (!result) {