Fixing Coverty Issue [1227859] 01/259601/4 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.0/unified/20211029.040333 accepted/tizen/6.5/unified/20211029.053723 accepted/tizen/7.0/unified/20221110.055758 accepted/tizen/7.0/unified/hotfix/20221116.111758 accepted/tizen/unified/20210615.120159 submit/tizen/20210611.100910 submit/tizen/20210611.130253 submit/tizen/20210615.064314 submit/tizen_6.5/20211028.164001 submit/tizen_6.5/20211029.140001 tizen_6.5.m2_release tizen_7.0_m2_release
authorshivamv <shivam.v2@samsung.com>
Thu, 10 Jun 2021 06:04:11 +0000 (11:34 +0530)
committerShivam Varshney <shivam.v2@samsung.com>
Thu, 10 Jun 2021 08:24:22 +0000 (08:24 +0000)
Change-Id: Ib5d2fd93c30a26ecb0965926639393009b6d0f2e
Signed-off-by: shivamv <shivam.v2@samsung.com>
src/view/ge-albums.c

index 6c5733f..8791135 100755 (executable)
@@ -495,6 +495,7 @@ __ge_gallery_ug_result_cb(app_control_h request, app_control_h reply,
        ge_ugdata *ugd = (ge_ugdata *) data;
        char **pathArray = NULL;
        int arrayLength = 0;
+       int ret=APP_CONTROL_ERROR_NONE;
        int i = 0;
        ugd->ug_launched = false;
 
@@ -503,9 +504,14 @@ __ge_gallery_ug_result_cb(app_control_h request, app_control_h reply,
                return;
        }
 
-       app_control_get_extra_data_array(reply, APP_CONTROL_DATA_PATH,
+       ret=app_control_get_extra_data_array(reply, APP_CONTROL_DATA_PATH,
                        &pathArray, &arrayLength);
 
+       if (ret != APP_CONTROL_ERROR_NONE) {
+               ge_dbgE("app_control_get_extra_data_array() failed. err = %d", ret);
+               return;
+       }
+
        if (arrayLength != 0) {
                ge_dbg("Receiving data from ug-gallery-efl.");
                char t_str[32] = { 0, };