Skip to content

Commit d1fa6c5

Browse files
ckuderaedriouk
andauthored
[svdconv] Fix infinite recursion in SvdItem::GetEffectiveProtection() method
Co-authored-by: Evgueni Driouk <[email protected]>
1 parent c721983 commit d1fa6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/svdconv/SVDModel/src/SvdItem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ SvdTypes::ReadAction SvdItem::GetEffectiveReadAction()
11411141
SvdTypes::ProtectionType SvdItem::GetEffectiveProtection()
11421142
{
11431143
for(auto parent=this; parent; parent=parent->GetParent()) {
1144-
const auto val = parent->GetEffectiveProtection();
1144+
const auto val = parent->GetProtection();
11451145
if(val != SvdTypes::ProtectionType::UNDEF) {
11461146
return val;
11471147
}

0 commit comments

Comments
 (0)