Fix for 126483. Init 'rv' to NS_OK so that we don't stop on the first header which doesn't have a value associated with it. r=ducarroz, sr=bienvenu, a=asa.

This commit is contained in:
cavin%netscape.com 2002-03-19 08:17:04 +00:00
Родитель 26711e1f36
Коммит 1713121ffb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1015,7 +1015,7 @@ nsresult nsOutlookCompose::WriteHeaders( nsIFileSpec *pDst, SimpleBufferTonyRCop
nsCString val;
nsCString replaceVal;
PRInt32 written;
nsresult rv = NS_ERROR_FAILURE;
nsresult rv = NS_OK; // it's ok if we don't have the first header on the predefined lists.
PRInt32 specialHeader;
PRBool specials[kMaxSpecialHeaders];
int i;