Merge "possible NULL pointer dereference"
This commit is contained in:
commit
a7423ca85d
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,11 @@ void MsgTask::destroy() {
|
|||
}
|
||||
|
||||
void MsgTask::sendMsg(const LocMsg* msg) const {
|
||||
msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy);
|
||||
if (msg) {
|
||||
msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy);
|
||||
} else {
|
||||
LOC_LOGE("%s: msg is NULL", __func__);
|
||||
}
|
||||
}
|
||||
|
||||
void MsgTask::prerun() {
|
||||
|
|
Loading…
Reference in a new issue