fix checking result_cb_list length exception 35/281635/1
authordyamy-lee <dyamy.lee@samsung.com>
Mon, 19 Sep 2022 10:54:44 +0000 (19:54 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Tue, 20 Sep 2022 06:08:25 +0000 (15:08 +0900)
exception's condition is changed as same or less than 0 for checking of client's result_cb_list in client_manager_get_result_cb_handle.

Change-Id: Idf2d16f84d142427194cc5a82ae781adb4ce4cba

src/mmimgr/mmi-client.c

index 61ddd52..198f294 100644 (file)
@@ -224,7 +224,7 @@ rpc_port_stub_mmi_result_cb_h client_manager_get_result_cb_handle(mmi_client *cl
                return NULL;
        }
 
-       if (g_list_length(client->result_cb_list) > 0) {
+       if (g_list_length(client->result_cb_list) <= 0) {
                LOGE("Fail to get client result_cb. There is no result_cb set");
                return NULL;
        }