Fix assertion to use tempChar too. Bug 258082 follow-up.

git-svn-id: svn://10.0.0.236/trunk@162152 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-09-12 04:49:56 +00:00
parent 31867d08ec
commit b24a9a7b74

View File

@@ -790,7 +790,7 @@ nsresult nsHTMLTokenizer::ConsumeStartTag(PRUnichar aChar,CToken*& aToken,nsScan
// Ensure we have a /
PRUnichar tempChar; // Don't change non-debug vars in debug-only code
result = aScanner.Peek(tempChar);
NS_ASSERTION(NS_SUCCEEDED(result) && theChar == kForwardSlash,
NS_ASSERTION(NS_SUCCEEDED(result) && tempChar == kForwardSlash,
"CTextToken::ConsumeUntil is broken!");
#endif
result = ConsumeEndTag(PRUnichar('/'),endToken,aScanner);