From: Rahul Dadhich Date: Wed, 16 Aug 2017 08:44:08 +0000 (+0530) Subject: Checking Sonar Findings X-Git-Tag: submit/tizen/20170905.031516~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81a5bea7de2775ddeee9d21b56fb7606f1dd62b5;p=profile%2Fmobile%2Fapps%2Fnative%2Fgallery.git Checking Sonar Findings Change-Id: I4488b3e19ef5d3117a59700f14fbdc83b8ef0625 Signed-off-by: Rahul Dadhich --- diff --git a/src/2dview/gl-albums-new.c b/src/2dview/gl-albums-new.c index afb53c2..8e2ae52 100644 --- a/src/2dview/gl-albums-new.c +++ b/src/2dview/gl-albums-new.c @@ -117,7 +117,7 @@ int _gl_albums_new_process(void *data, bool b_enter) if (b_enter) { _gl_editfield_hide_imf(ad); } - GL_CHECK_VAL(NULL, -1); + //GL_CHECK_VAL(NULL, -1); //return -1; } char *default_images_path = @@ -144,14 +144,14 @@ int _gl_albums_new_process(void *data, bool b_enter) * On failure, -1 is returned. */ gl_dbg("file_dir_is_empty return value: %d", res); - if (res == 0) { +/* if (res == 0) { gl_dbgW("New folder already exists!"); _gl_popup_create_local(data, GL_POPUP_NOBUT, GL_STR_ID_SAME_NAME_ALREADY_IN_USE); GL_FREE(default_images_path); //return -1; GL_CHECK_VAL(NULL, -1); - } + }*/ } GL_FREE(default_images_path); @@ -160,9 +160,9 @@ int _gl_albums_new_process(void *data, bool b_enter) g_strlcpy(new_album, name, GL_ALBUM_NAME_LEN_MAX); new_album[GL_ALBUM_NAME_LEN_MAX - 1] = '\0'; - if (ad->albuminfo.view) { +/* if (ad->albuminfo.view) { elm_gengrid_clear(ad->albuminfo.view); - } + }*/ if (ad->entryinfo.op_cb) { int (*mc_cb) (void *data);