r=mkaply, sr=alecf, a=asa
From ccarlen - check parser state at end of file
This commit is contained in:
mkaply%us.ibm.com 2003-02-03 14:59:39 +00:00
Родитель 0c7777caea
Коммит aed4ca0fbf
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -494,6 +494,13 @@ nsPersistentProperties::Load(nsIInputStream *aIn)
ret = mIn->Read(buf, 0, PROP_BUFFER_SIZE, &nRead);
}
// We may have an unprocessed value at this point
// if the last line did not have a proper line ending.
if (parserState.GetState() == eParserState_Value) {
nsAutoString oldValue;
parserState.FinishValueState(oldValue);
}
return NS_OK;
}