mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
fix crash viewing Ben Goodger's vCard :)
just a null pointer check, no reviewer
This commit is contained in:
parent
63c6af03cc
commit
93a6a9d9ce
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user