summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2017-06-22 11:53:23 -0400
committerJackLivio <jack@livio.io>2017-06-22 11:53:23 -0400
commitc79822b4674a5e0ca1a1cfbfbe4756baf9952c83 (patch)
tree4f4b0768eac7e9823d264861a83f1817cea7a754 /src/components
parent61f9cbe7309b52702def20682e4c6dce699bb1dd (diff)
downloadsdl_core-c79822b4674a5e0ca1a1cfbfbe4756baf9952c83.tar.gz
Coverity Fixes in cache manager
Diffstat (limited to 'src/components')
-rw-r--r--src/components/policy/policy_external/src/cache_manager.cc3
-rw-r--r--src/components/policy/policy_external/src/update_status_manager.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/policy/policy_external/src/cache_manager.cc b/src/components/policy/policy_external/src/cache_manager.cc
index b1bd73538e..44e7b627c6 100644
--- a/src/components/policy/policy_external/src/cache_manager.cc
+++ b/src/components/policy/policy_external/src/cache_manager.cc
@@ -1082,7 +1082,8 @@ bool CacheManager::SetUserPermissionsForApp(
permissions.group_permissions.begin();
std::vector<FunctionalGroupPermission>::const_iterator iter_end =
permissions.group_permissions.end();
-
+ *out_app_permissions_changed = false;
+
std::string group_name;
for (; iter != iter_end; ++iter) {
if (policy::kGroupUndefined != (*iter).state) {
diff --git a/src/components/policy/policy_external/src/update_status_manager.cc b/src/components/policy/policy_external/src/update_status_manager.cc
index 8b7635c25c..087db1149b 100644
--- a/src/components/policy/policy_external/src/update_status_manager.cc
+++ b/src/components/policy/policy_external/src/update_status_manager.cc
@@ -42,6 +42,7 @@ CREATE_LOGGERPTR_GLOBAL(logger_, "Policy")
UpdateStatusManager::UpdateStatusManager()
: listener_(NULL)
, current_status_(utils::MakeShared<UpToDateStatus>())
+ , last_processed_event_(kNoEvent)
, apps_search_in_progress_(false)
, app_registered_from_non_consented_device_(true) {
update_status_thread_delegate_ = new UpdateThreadDelegate(this);
@@ -62,6 +63,7 @@ UpdateStatusManager::~UpdateStatusManager() {
void UpdateStatusManager::ProcessEvent(UpdateEvent event) {
sync_primitives::AutoLock lock(status_lock_);
current_status_->ProcessEvent(this, event);
+ last_processed_event_ = event;
DoTransition();
}