mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
fix singsign startup assertion in string class, r=morse
This commit is contained in:
parent
ce544548fc
commit
6b30a5ce4b
@ -548,7 +548,7 @@ Local_SACopy(char **destination, const char *source) {
|
||||
PRIVATE void
|
||||
si_StripLF(nsAutoString buffer) {
|
||||
PRUnichar c;
|
||||
while ((c=buffer.CharAt(buffer.Length())-1) == '\n' || c == '\r' ) {
|
||||
while ((c=buffer.CharAt(buffer.Length() - 1)) == '\n' || c == '\r' ) {
|
||||
buffer.SetLength(buffer.Length()-1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user