From: jomui Date: Wed, 12 Oct 2016 07:52:44 +0000 (+0900) Subject: fix bug for Null request_id X-Git-Tag: submit/tizen_3.0/20161108.012559~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F91930%2F1;p=platform%2Fcore%2Flocation%2Fmaps-plugin-mapzen.git fix bug for Null request_id Signed-off-by: jomui Change-Id: I9a0c6b92b0b5891aeb45f285cd81f2858f4619c0 --- diff --git a/src/mapzen_plugin.c b/src/mapzen_plugin.c index ee15181..a6bb44d 100644 --- a/src/mapzen_plugin.c +++ b/src/mapzen_plugin.c @@ -877,11 +877,11 @@ static void __mapzen_route_cb(mapzen_error_e result, int request_id, mapzen_rout EXPORT_API int maps_plugin_search_route(const maps_coordinates_h origin, const maps_coordinates_h destination, maps_preference_h preference, maps_service_search_route_cb callback, void *user_data, int *request_id) { - MAPS_LOGD(">>>>> START maps_plugin_search_route: request_id=%d", *request_id); - if (!origin || !destination || !callback || !request_id) return MAPS_ERROR_INVALID_PARAMETER; + MAPS_LOGD(">>>>> START maps_plugin_search_route: request_id=%d", *request_id); + callback_info_route *calldata_route = (callback_info_route *)g_malloc0(sizeof(callback_info_route)); if (calldata_route == NULL) MAPS_PRINT_ERROR_CODE_RETURN(MAPS_ERROR_OUT_OF_MEMORY);