|
|
@@ -485,11 +485,12 @@ struct ProcessPreOnlineTask : public ITaskSp
|
|
|
{
|
|
|
CHeartBeatFSM* fsm;
|
|
|
CardActiveReq* cardActiveReq;
|
|
|
- ProcessPreOnlineTask(CHeartBeatFSM* f, CardActiveReq* req) : fsm(f),cardActiveReq(nullptr)
|
|
|
+ ProcessPreOnlineTask(CHeartBeatFSM* f, CardActiveReq* req) : fsm(f),cardActiveReq(NULL)
|
|
|
{
|
|
|
- if (req != nullptr) {
|
|
|
+ if (req != NULL) {
|
|
|
cardActiveReq = (CardActiveReq*)malloc(sizeof(struct CardActiveReq));
|
|
|
- memcpy(cardActiveReq, req, sizeof(CardActiveReq));
|
|
|
+ if(cardActiveReq != NULL)
|
|
|
+ memcpy(cardActiveReq, req, sizeof(struct CardActiveReq));
|
|
|
}
|
|
|
}
|
|
|
~ProcessPreOnlineTask()
|