зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
ae242fc3fb
Коммит
27a14620ec
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче