Fix other crashes

This commit is contained in:
Andy CA6JAU
2018-08-20 00:47:45 -03:00
parent 713d12e5a4
commit b66a92bb9c
3 changed files with 6 additions and 2 deletions

View File

@@ -97,7 +97,8 @@ unsigned int CPOCSAGControl::readModem(unsigned char* data)
bool CPOCSAGControl::processData()
{
assert(m_network != NULL);
if (m_network == NULL)
return false;
unsigned char data[300U];
unsigned int length = m_network->read(data);