Fixed coverity warnings for class CellularConnectionFSM

pull/6496/head
Teppo Järvelin 2018-03-20 15:04:28 +02:00
parent f6be35c0f2
commit 0ebfa35d7b
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ void CellularConnectionFSM::stop()
_cellularDevice->close_network();
if (_queue_thread) {
_queue_thread->terminate();
delete _queue_thread;
_queue_thread = NULL;
}
}
@ -135,6 +136,7 @@ bool CellularConnectionFSM::power_on()
void CellularConnectionFSM::set_sim_pin(const char * sim_pin)
{
strncpy(_sim_pin, sim_pin, sizeof(_sim_pin));
_sim_pin[sizeof(_sim_pin)] = '\0';
}
bool CellularConnectionFSM::open_sim()