Browse Source

demoddvb: Initialize EPG section storage

Value-initialize the DVB and Freesat section containers in the EPG
constructor to ensure section storage starts in a defined state.

Identified by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.1.0
Robin Getz 4 weeks ago
parent
commit
df090f119d
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 6
      plugins/channelrx/demoddvb/dvbdemodepg.cpp

6
plugins/channelrx/demoddvb/dvbdemodepg.cpp

@ -114,6 +114,12 @@ int DVBDemodEPG::eitVersionKey(int sourceTable, int section) @@ -114,6 +114,12 @@ int DVBDemodEPG::eitVersionKey(int sourceTable, int section)
}
DVBDemodEPG::DVBDemodEPG() :
m_nitSections{},
m_sdtSections{},
m_eitSections{},
m_timeSections{},
m_freesatSiSections{},
m_freesatEitSections{},
m_freesatRegion(0),
m_networkId(-1),
m_transportStreamId(-1),

Loading…
Cancel
Save