Skip to content

Commit

Permalink
RDKTV-3205 : fix crash in HdmiCecSink
Browse files Browse the repository at this point in the history
Reason for change: Crash occurs during HdmiCecSink constructor,
because of an uninitialized variable.
Test Procedure: Dunfell build, monitor wpeframework start.
Risks: Low
Signed-off-by: Nikita Poltorapavlo <[email protected]>
  • Loading branch information
npoltorapavlo committed Jun 4, 2021
1 parent bd117b3 commit 40780db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HdmiCecSink/HdmiCecSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ namespace WPEFramework {

DeviceNode() {
int i;
for (i; i < LogicalAddress::UNREGISTERED; i++ )
for (i = 0; i < LogicalAddress::UNREGISTERED; i++ )
{
m_childsLogicalAddr[i] = LogicalAddress::UNREGISTERED;
}
Expand Down

0 comments on commit 40780db

Please sign in to comment.