Bug 230209 Infinite loop in DRefTool because error condition was dropped on floor
r=bz git-svn-id: svn://10.0.0.236/trunk@151074 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
aefa87c01b
commit
8f55dbe4ed
@ -137,8 +137,10 @@ int CCommentToken::consume(char aChar, CScanner& aScanner) {
|
||||
else {
|
||||
bool done=false;
|
||||
nsCAutoString temp("/");
|
||||
while((0==result) && (false==done)){
|
||||
aScanner.readUntil(mTextValue,temp,true);
|
||||
while(!done){
|
||||
result = aScanner.readUntil(mTextValue,temp,true);
|
||||
if (kNoError!=result)
|
||||
break;
|
||||
char theChar=mTextValue[mTextValue.Length()-2];
|
||||
done=('*'==theChar);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user