95614 - Initialized an iterator and replaced NS_ENSURE_SUCCESS ( which asserts), since the result code from nsScanner::Peek() does not indicate an exceptional condition, with equivalent code. r=heikki, sr=waterson.

This commit is contained in:
harishd@netscape.com
2001-08-16 21:19:33 +00:00
parent 823edbbf1d
commit 94704f55de
4 changed files with 38 additions and 26 deletions

View File

@@ -547,6 +547,7 @@ nsresult CTextToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aFlag)
start = origin;
++start;
aScanner.SetPosition(start);
aScanner.EndReading(end);
while((NS_OK==result) && (!done)) {
result=aScanner.ReadUntil(start, end, theEndCondition, PR_FALSE);