mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 20:20:00 +00:00
Don't try to call strlen() on a null string.
This commit is contained in:
parent
8e75c8bbe4
commit
2a3a60880a
@ -129,7 +129,8 @@ nsOutputStream& nsOutputStream::operator << (char c)
|
||||
nsOutputStream& nsOutputStream::operator << (const char* s)
|
||||
//----------------------------------------------------------------------------------------
|
||||
{
|
||||
write(s, strlen(s));
|
||||
if (s)
|
||||
write(s, strlen(s));
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user