зеркало из https://github.com/mozilla/pjs.git
Don't use uninitialized variables. Bug 414076 followup, patch by Ronny Perinke
<ronny.perinke@gmx.de>, r+sr=bzbarsky
This commit is contained in:
Родитель
cdb03c7b11
Коммит
dec354dc84
|
@ -1006,8 +1006,6 @@ nsContentIterator::PositionAt(nsIContent* aCurNode)
|
|||
|
||||
if (firstNode && lastNode)
|
||||
{
|
||||
PRUint32 numChildren;
|
||||
|
||||
if (mPre)
|
||||
{
|
||||
firstNode = ContentToParentOffset(mFirst, &firstOffset);
|
||||
|
@ -1022,7 +1020,9 @@ nsContentIterator::PositionAt(nsIContent* aCurNode)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (firstNode->GetChildCount())
|
||||
PRUint32 numChildren = firstNode->GetChildCount();
|
||||
|
||||
if (numChildren)
|
||||
firstOffset = numChildren;
|
||||
else
|
||||
firstNode = ContentToParentOffset(mFirst, &firstOffset);
|
||||
|
|
Загрузка…
Ссылка в новой задаче