summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2017-06-22 13:45:45 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2017-06-22 13:48:54 -0400
commitef91e367969fc78d9ab9e91fc17595a7e85c5075 (patch)
tree522c267f25bc75a987625363971da10e3c8ba684
parentc877a40c26977f0e465289d61c7ca82735ada7f8 (diff)
downloadsdl_core-ef91e367969fc78d9ab9e91fc17595a7e85c5075.tar.gz
Fix CID 171131
Initialize variables in empty constructor for ExternalConsentStatusItem
-rw-r--r--src/components/application_manager/src/commands/mobile/system_request.cc2
-rw-r--r--src/components/policy/policy_external/include/policy/policy_types.h3
-rw-r--r--src/components/policy/policy_external/src/cache_manager.cc2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/components/application_manager/src/commands/mobile/system_request.cc b/src/components/application_manager/src/commands/mobile/system_request.cc
index 866c3b950c..0d3334a1a1 100644
--- a/src/components/application_manager/src/commands/mobile/system_request.cc
+++ b/src/components/application_manager/src/commands/mobile/system_request.cc
@@ -118,7 +118,7 @@ class QueryAppsDataValidator {
smart_objects::SmartArray::iterator applications_iterator =
objects_array->begin();
- for (; applications_iterator != objects_array->end(); ) {
+ for (; applications_iterator != objects_array->end();) {
const smart_objects::SmartObject& app_data = *applications_iterator;
if (!app_data.isValid()) {
diff --git a/src/components/policy/policy_external/include/policy/policy_types.h b/src/components/policy/policy_external/include/policy/policy_types.h
index eff8cfdf7b..ab95659917 100644
--- a/src/components/policy/policy_external/include/policy/policy_types.h
+++ b/src/components/policy/policy_external/include/policy/policy_types.h
@@ -401,7 +401,8 @@ struct ExternalConsentStatusItem {
const EntityStatus status)
: entity_type_(type), entity_id_(id), status_(status) {}
- ExternalConsentStatusItem() {}
+ ExternalConsentStatusItem()
+ : entity_type_(0), entity_id_(0), status_(kStatusOff) {}
ExternalConsentStatusItem operator=(const ExternalConsentStatusItem& rhs) {
this->entity_id_ = rhs.entity_id_;
diff --git a/src/components/policy/policy_external/src/cache_manager.cc b/src/components/policy/policy_external/src/cache_manager.cc
index 44e7b627c6..22040c88b2 100644
--- a/src/components/policy/policy_external/src/cache_manager.cc
+++ b/src/components/policy/policy_external/src/cache_manager.cc
@@ -1083,7 +1083,7 @@ bool CacheManager::SetUserPermissionsForApp(
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) {