[1236661]Resolved Coverity issue 17/260217/2 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.224701 accepted/tizen/7.0/unified/20221110.060301 accepted/tizen/7.0/unified/hotfix/20221116.112118 accepted/tizen/unified/20210623.125305 submit/tizen/20210622.112400 submit/tizen_6.5/20211028.164101 tizen_6.5.m2_release tizen_7.0_m2_release
authorAmritanshu <a.pandia1@samsung.com>
Tue, 22 Jun 2021 06:23:49 +0000 (11:53 +0530)
committerAmritanshu <a.pandia1@samsung.com>
Tue, 22 Jun 2021 08:02:44 +0000 (13:32 +0530)
Change-Id: Iff90f608454083d6d0983bf48b21f4f48a60723d
Signed-off-by: Amritanshu <a.pandia1@samsung.com>
clock-viewer/src/clock-viewer-widget.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 724566c..a0fba83
@@ -148,7 +148,12 @@ void clock_viewer_default_widget_init(void *data, Evas_Object *parent, char *clo
        evas_object_smart_callback_add(parent, WATCH_SMART_SIGNAL_REMOVED, _watch_removed_cb, NULL);
 
        watch_manager_get_app_control(CLOCK_PACKAGE_NAME, &watch_control);
-       app_control_send_launch_request(watch_control, NULL, NULL);
+       int ret = app_control_send_launch_request(watch_control, NULL, NULL);
+       if (ret != APP_CONTROL_ERROR_NONE) {
+               _ERR("Failed to launch org.tizen.idle-clock-digital error = %d", ret);
+               app_control_destroy(watch_control);
+               return;
+       }
        app_control_destroy(watch_control);
 }