From 71d6e7761dfccc0b2bdcd2ae6f34b7a954e693b5 Mon Sep 17 00:00:00 2001 From: Daehyeon Jung Date: Tue, 5 Jan 2016 21:57:49 +0900 Subject: [PATCH] fix misuse of bundle_get_byte Change-Id: Idc09995108f6de67e2c0aeae4a397a55550bdfcb --- src/app_com.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app_com.c b/src/app_com.c index 69062e0..3e13b8c 100644 --- a/src/app_com.c +++ b/src/app_com.c @@ -42,7 +42,7 @@ int app_com_recv(bundle *b) int ret = 0; char *endpoint = NULL; size_t result_sz; - int result; + int *result; GList *head = handlers; aul_app_com_connection_s *handler = NULL; @@ -60,7 +60,7 @@ int app_com_recv(bundle *b) while (head) { handler = (aul_app_com_connection_s *)head->data; if (handler && handler->endpoint && g_strcmp0(handler->endpoint, endpoint) == 0) - handler->callback(endpoint, result, b, handler->user_data); + handler->callback(endpoint, *result, b, handler->user_data); head = head->next; } -- 2.7.4