MAPS_LOGD("UC was set No");
file.close();
} else {
- char buff[256];
- strerror_r(errno, buff, sizeof(buff));
- MAPS_LOGD("UC file open fail. %s (%d)", buff, errno);
+ char buff[256], *p;
+ p = strerror_r(errno, buff, sizeof(buff));
+ if (p)
+ MAPS_LOGD("UC file open fail. %s (%d)", p, errno);
}
return isAgree;
return;
}
- mapsPlace = m_PlaceList.front();
- m_PlaceList.pop_front();
+ mapsPlace = m_PlaceList.front();
+ m_PlaceList.pop_front();
((maps_service_get_place_details_cb)m_pCbFunc)((maps_error_e)error, m_nReqId, mapsPlace, m_pUserData);
}
int error = maps_item_list_create(&place_list);
if (error != MAPS_ERROR_NONE)
{
- ((maps_service_search_place_list_cb)m_pCbFunc)((maps_error_e)error, m_nReqId, NULL, m_pUserData);
+ ((maps_service_search_place_list_cb)m_pCbFunc)((maps_error_e)error, 0, m_nReqId, NULL, m_pUserData);
return;
}
maps_item_list_append(place_list, mapsPlace, maps_place_clone);
}
- ((maps_service_search_place_list_cb)m_pCbFunc)((maps_error_e)error, m_nReqId, place_list, m_pUserData);
+ ((maps_service_search_place_list_cb)m_pCbFunc)((maps_error_e)error, maps_item_list_items(place_list), m_nReqId, place_list, m_pUserData);
}
else
{