From d1f3a7264ba32cacd4654e015d5135216cac646f Mon Sep 17 00:00:00 2001 From: hyunho Date: Mon, 23 Mar 2020 15:37:31 +0900 Subject: [PATCH] Check return value Change-Id: I00705ba25c61bbfea9c23f89ce9769a9b72a25cc Signed-off-by: hyunho --- tool/app_com_tool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tool/app_com_tool.c b/tool/app_com_tool.c index 05c0f7b..00c629a 100644 --- a/tool/app_com_tool.c +++ b/tool/app_com_tool.c @@ -28,6 +28,7 @@ static int __handler(const char *endpoint, aul_app_com_result_e result, bundle static void __create(const char *endpoint, const char *privilege) { aul_app_com_permission_h permission = NULL; + int ret; if (privilege) { permission = aul_app_com_permission_create(); @@ -35,7 +36,8 @@ static void __create(const char *endpoint, const char *privilege) aul_app_com_permission_set_propagation(permission, AUL_APP_COM_PRIVILEGED); } - aul_app_com_create(endpoint, permission, __handler, NULL, &conn); + ret = aul_app_com_create(endpoint, permission, __handler, NULL, &conn); + printf("app_com_create ret: %d\n", ret); if (permission) aul_app_com_permission_destroy(permission); -- 2.7.4