Fix bug 31568. Need to check if hostname isn't empty. R=mscott, A=phil,jar

This commit is contained in:
ducarroz%netscape.com 2000-03-15 02:02:17 +00:00
parent e7dc30bdcd
commit 6cfd1b423d

View File

@ -115,7 +115,7 @@ nsresult nsSmtpService::SendMailMessage(nsIFileSpec * aFilePath,
smtpServer->GetHostname(getter_Copies(smtpHostName));
smtpServer->GetUsername(getter_Copies(smtpUserName));
if ((const char*)smtpHostName)
if ((const char*)smtpHostName && (const char*)smtpHostName[0] != 0)
{
rv = NS_MsgBuildSmtpUrl(aFilePath, smtpHostName, smtpUserName,
aRecipients, aSenderIdentity, aUrlListener,