зеркало из https://github.com/mozilla/pjs.git
fix crash viewing Ben Goodger's vCard :)
just a null pointer check, no reviewer
This commit is contained in:
Родитель
d8c33499ce
Коммит
485ff760cf
|
@ -1730,9 +1730,11 @@ static int WriteLineToStream (MimeObject *obj, const char *line)
|
|||
{
|
||||
int status = 0;
|
||||
char *htmlLine;
|
||||
int htmlLen ;
|
||||
int htmlLen =0;
|
||||
|
||||
htmlLen = nsCRT::strlen(line) + nsCRT::strlen("<DT></DT>") + 1;;
|
||||
if (line) htmlLen += nsCRT::strlen(line);
|
||||
|
||||
htmlLen += nsCRT::strlen("<DT></DT>") + 1;
|
||||
|
||||
htmlLine = (char *) PR_MALLOC (htmlLen);
|
||||
if (htmlLine)
|
||||
|
|
Загрузка…
Ссылка в новой задаче