зеркало из https://github.com/mozilla/gecko-dev.git
bug 44252. Checking in for sspitzer. r=putterman
This commit is contained in:
Родитель
a4c70122a8
Коммит
a19a875444
|
@ -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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче