fix crash compacting local folders, r=naving, sr=mscott 66002

This commit is contained in:
bienvenu%netscape.com 2001-01-19 21:10:34 +00:00
parent 51b3d54882
commit d9717de723

View File

@ -125,7 +125,6 @@ nsFolderCompactState::InitDB(nsIMsgDatabase *db)
getter_AddRefs(m_db));
}
}
db ->ListAllKeys(m_keyArray);
return rv;
}
@ -140,12 +139,13 @@ nsFolderCompactState::Init(nsIMsgFolder *folder, const char *baseMsgUri, nsIMsgD
if (!m_baseMessageUri)
return NS_ERROR_OUT_OF_MEMORY;
pathSpec->GetFileSpec(&m_fileSpec);
m_fileSpec.SetLeafName("nstmp");
InitDB(db);
m_size = m_keyArray.GetSize();
m_curIndex = 0;
pathSpec->GetFileSpec(&m_fileSpec);
m_fileSpec.SetLeafName("nstmp");
m_fileStream = new nsOutputFileStream(m_fileSpec);
if (!m_fileStream)