summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Akulich <akulichalexander@gmail.com>2016-09-24 12:29:44 (GMT)
committerAlexandr Akulich <akulichalexander@gmail.com>2016-09-26 07:55:01 (GMT)
commit03508d05afe02c17ed7066d78d6f42283c2e14e5 (patch)
tree9a8c65e67b083794a317763a639438567f82e4aa
parenta1aa486529f2f452b1eb63536e3d299aef0566b3 (diff)
Fixed uninitialized variable usage
Bug reported by the clang static analyzer REVIEW: 129016
-rw-r--r--x-telepathy-password-auth-operation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/x-telepathy-password-auth-operation.cpp b/x-telepathy-password-auth-operation.cpp
index be0ed99..9e8bdcc 100644
--- a/x-telepathy-password-auth-operation.cpp
+++ b/x-telepathy-password-auth-operation.cpp
@@ -170,7 +170,7 @@ void XTelepathyPasswordAuthOperation::storeCredentials(const QString &secret)
QString username = m_account->parameters().value(QStringLiteral("account")).toString();
Accounts::Manager *manager = KAccounts::accountsManager();
Accounts::Account *account = manager->account(m_accountStorageId);
- SignOn::Identity *identity;
+ SignOn::Identity *identity = nullptr;
if (account) {
Accounts::AccountService *service = new Accounts::AccountService(account, manager->service(QString()), this);