fix misuse of bundle_get_byte 34/56234/1 accepted/tizen/mobile/20160112.223845 accepted/tizen/tv/20160112.223913 accepted/tizen/wearable/20160112.223928 submit/tizen/20160112.015033 submit/tizen/20160112.082423
authorDaehyeon Jung <darrenh.jung@samsung.com>
Tue, 5 Jan 2016 12:57:49 +0000 (21:57 +0900)
committerDaehyeon Jung <darrenh.jung@samsung.com>
Tue, 5 Jan 2016 12:58:13 +0000 (21:58 +0900)
Change-Id: Idc09995108f6de67e2c0aeae4a397a55550bdfcb

src/app_com.c

index 69062e0..3e13b8c 100644 (file)
@@ -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;
        }