Fix unchecked return value issue 22/258622/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 21 May 2021 07:15:38 +0000 (16:15 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 21 May 2021 07:39:39 +0000 (16:39 +0900)
check_return: Calling app_control_get_caller without checking return value (as is done elsewhere 10 out of 12 times).

Change-Id: I3972e7e3dbd23ce366cba8f20ed615d19ce24849
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/w-input-keyboard.cpp

index 8cb6974d358e65557c1227e6f0c58427c1b0aca1..e504d967b284baae114cff073c8b8b671f5eac46 100644 (file)
@@ -115,8 +115,8 @@ void exit_keyboard()
        snprintf(cursorPosition, sizeof(cursorPosition), "%d", elm_entry_cursor_pos_get(entry));
 
        char *app_id = NULL;
-       app_control_get_caller(app_data->source_app_control, &app_id);
-       if (app_id != NULL)
+       ret = app_control_get_caller(app_data->source_app_control, &app_id);
+       if (ret == APP_CONTROL_ERROR_NONE && app_id != NULL)
                app_control_set_app_id(app_control, app_id);
        app_control_set_operation(app_control, APP_CONTROL_OPERATION_DEFAULT);
        set_source_caller_app_id(app_control);