mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
03b765f70e
commit
19fa57d1f9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user