Followon from a checkin I did yesterday to fix bugs 29521 and 29827 (a=jar); this part fixes an assertion that happened with empty form fields. r=kin

This commit is contained in:
sfraser%netscape.com 2000-03-02 19:36:15 +00:00
Родитель ae242fc3fb
Коммит 27a14620ec
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -453,6 +453,9 @@ nsresult nsLinebreakConverter::ConvertStringLineBreaks(nsString& ioString,
NS_ASSERTION(aDestBreaks != eLinebreakAny, "Invalid parameter");
// nothing to do
if (ioString.Length() == 0) return NS_OK;
// we can't go messing with data we don't own
if (!ioString.mOwnsBuffer) return NS_ERROR_UNEXPECTED;