fix crash viewing Ben Goodger's vCard :)

just a null pointer check, no reviewer
This commit is contained in:
alecf%netscape.com 2000-01-07 01:00:29 +00:00
parent 63c6af03cc
commit 93a6a9d9ce

View File

@ -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)