diff --git a/src/app/InteractionModelEngine.cpp b/src/app/InteractionModelEngine.cpp index 4402dd0ce7cbff..d4afe3347fe271 100644 --- a/src/app/InteractionModelEngine.cpp +++ b/src/app/InteractionModelEngine.cpp @@ -583,7 +583,7 @@ CHIP_ERROR InteractionModelEngine::ParseAttributePaths(const Access::SubjectDesc if (paramsList.mValue.IsWildcardPath()) { - AttributePathExpandIterator::Position state = AttributePathExpandIterator::Position::StartIterating(¶msList); + auto state = AttributePathExpandIterator::Position::StartIterating(¶msList); AttributePathExpandIterator pathIterator(GetDataModelProvider(), state); ConcreteAttributePath readPath;