Bug 1370357 - fix uninitialized variable in nsImapMailFolder.cpp and nsAbCardProperty.cpp. r=jorgk

This commit is contained in:
aceman 2017-06-07 14:59:00 +02:00
Родитель 7d0ee5103e
Коммит 08ed3828f4
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -37,7 +37,8 @@ const char sAddrbookProperties[] = "chrome://messenger/locale/addressbook/addres
enum EAppendType {
eAppendLine,
eAppendLabel,
eAppendCityStateZip
eAppendCityStateZip,
eAppendUndefined
};
struct AppendItem {
@ -1033,6 +1034,7 @@ nsresult nsAbCardProperty::AppendCityStateZip(const AppendItem &aItem,
item.mColumn = statePropName;
item.mLabel = "";
item.mAppendType = eAppendUndefined;
rv = AppendLine(item, aConv, stateResult);
NS_ENSURE_SUCCESS(rv,rv);

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

@ -5391,7 +5391,7 @@ nsImapMailFolder::OnStopRunningUrl(nsIURI *aUrl, nsresult aExitCode)
// For pluggable stores that do not support compaction, we need
// to delete the messages now.
bool supportsCompaction;
bool supportsCompaction = false;
uint32_t numHdrs = 0;
nsCOMPtr<nsIMsgPluggableStore> offlineStore;
(void) GetMsgStore(getter_AddRefs(offlineStore));