Fix issue return value is not checked 03/259803/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 15 Jun 2021 01:32:03 +0000 (10:32 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 15 Jun 2021 01:52:05 +0000 (10:52 +0900)
check_return: Calling notification_set_launch_option without checking return value

Change-Id: I4a5c1f5f107a751645075385ed61dcbcef988e46
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/extras/efl_panel/isf_panel_efl.cpp

index f5360cc..98910f2 100644 (file)
@@ -614,7 +614,10 @@ static void create_notification (NotificationData *noti_data)
             app_control_set_operation (service, APP_CONTROL_OPERATION_DEFAULT);
             app_control_set_app_id (service, noti_data->launch_app.c_str ());
 
-            notification_set_launch_option (notification, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, (void *)service);
+            ret = notification_set_launch_option (notification, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, (void *)service);
+            if (ret != NOTIFICATION_ERROR_NONE) {
+                LOGW ("Failed to set launch option. error code : %d", ret);
+            }
             ret = notification_insert (notification, &noti_data->noti_id);
             if (ret != NOTIFICATION_ERROR_NONE) {
                 LOGW ("Failed to insert notification. error code : %d", ret);