bug 44252. Checking in for sspitzer. r=putterman

This commit is contained in:
dimator%netscape.com 2000-07-12 02:23:10 +00:00
Родитель a4c70122a8
Коммит a19a875444
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -1860,11 +1860,18 @@ nsMessengerMigrator::MigrateNewsAccounts(nsIMsgIdentity *identity)
char is_newsgroup[512];
PRBool ok;
// check if the fat file exists
// if not, return and handle it gracefully
if (!fatFile.Exists()) {
return NS_OK;
}
nsInputFileStream inputStream(fatFile);
// if it exists, but it is empty, just return and handle it gracefully
if (inputStream.eof()) {
inputStream.close();
return NS_ERROR_FAILURE;
return NS_OK;
}
/* we expect the first line to be NEWSRC_MAP_FILE_COOKIE */