Merge "Merge "Added NULL check before function call""
This commit is contained in:
commit
17014073f9
2 changed files with 5 additions and 2 deletions
|
@ -857,6 +857,8 @@ void LocEngReportNmea::proc() const {
|
|||
gettimeofday(&tv, (struct timezone *) NULL);
|
||||
int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000;
|
||||
CALLBACK_LOG_CALLFLOW("nmea_cb", %d, mLen);
|
||||
|
||||
if (locEng->nmea_cb != NULL)
|
||||
locEng->nmea_cb(now, mNmea, mLen);
|
||||
}
|
||||
inline void LocEngReportNmea::locallog() const {
|
||||
|
|
|
@ -60,6 +60,7 @@ void loc_eng_nmea_send(char *pNmea, int length, loc_eng_data_s_type *loc_eng_dat
|
|||
gettimeofday(&tv, (struct timezone *) NULL);
|
||||
int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000;
|
||||
CALLBACK_LOG_CALLFLOW("nmea_cb", %p, pNmea);
|
||||
if (loc_eng_data_p->nmea_cb != NULL)
|
||||
loc_eng_data_p->nmea_cb(now, pNmea, length);
|
||||
LOC_LOGD("NMEA <%s", pNmea);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue