зеркало из https://github.com/mozilla/gecko-dev.git
Don't try to call strlen() on a null string.
This commit is contained in:
Родитель
8e75c8bbe4
Коммит
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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче