Don't use uninitialized variables. Bug 414076 followup, patch by Ronny Perinke
<ronny.perinke@gmx.de>, r+sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@248226 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e38adb6dc2
commit
1f2492108f
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user