summaryrefslogtreecommitdiff
path: root/redfish-core/lib/chassis.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/chassis.hpp')
-rw-r--r--redfish-core/lib/chassis.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 4a79783fb4..9ee10b5c62 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -152,7 +152,7 @@ inline void handlePhysicalSecurityGetSubTree(
{
if (!object.second.empty())
{
- const auto service = object.second.front();
+ const auto& service = object.second.front();
BMCWEB_LOG_DEBUG("Get intrusion status by service ");