Handle zero block length.

This commit is contained in:
Jonathan Naylor
2016-09-19 17:55:28 +01:00
parent 730d14fde2
commit c757c41754

View File

@@ -152,6 +152,9 @@ unsigned int CDMRDataHeader::getDstId() const
unsigned int CDMRDataHeader::getBlocks() const unsigned int CDMRDataHeader::getBlocks() const
{ {
if (m_blocks == 0U)
return 1U;
return m_blocks; return m_blocks;
} }