Make sure that we print some data string, even if INTL functions fail. Fixes Mac crasher. Checked in for putterman.

git-svn-id: svn://10.0.0.236/trunk@32157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hangas%netscape.com
1999-05-18 23:17:26 +00:00
parent d564d38b2f
commit 2669e7d5bd

View File

@@ -573,7 +573,8 @@ nsMsgMessageDataSource::createMessageDateNode(nsIMessage *message,
if(mDateTimeFormat)
rv = mDateTimeFormat->FormatTMTime(mApplicationLocale, kDateFormatShort, kTimeFormatNoSeconds,
tmTime, dateString);
else
//Ensure that we always have some string for the date.
if(!mDateTimeFormat || NS_FAILED(rv))
{
dateString ="";
rv = NS_OK;