From 8fedfa3cf8ba8af1ef15cedcefb5bac1dd6ff4f0 Mon Sep 17 00:00:00 2001 From: jomui Date: Wed, 12 Oct 2016 16:52:44 +0900 Subject: [PATCH] fix bug for Null request_id Signed-off-by: jomui Change-Id: I9a0c6b92b0b5891aeb45f285cd81f2858f4619c0 --- src/mapzen_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.7.4