diff options
author | Jihoon Jung <jh8801.jung@samsung.com> | 2020-08-21 15:27:47 +0900 |
---|---|---|
committer | Jihoon Jung <jh8801.jung@samsung.com> | 2020-08-21 15:44:59 +0900 |
commit | 79134800255293750ca6ed1b2ff661af25d8d3f8 (patch) | |
tree | 67a1e8cec52550f6f2e8eee8a99afe6ba2a1fb8f | |
parent | f5a13a8c51bd407b49df10231fe6b3195cf5a5d6 (diff) | |
download | mtp-responder-accepted/tizen_6.0_unified.tar.gz mtp-responder-accepted/tizen_6.0_unified.tar.bz2 mtp-responder-accepted/tizen_6.0_unified.zip |
Fix Svace issue #446050 : UNREACHABLE_CODEtizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114803submit/tizen_6.0_hotfix/20201102.192503submit/tizen_6.0/20201029.205103submit/tizen/20200824.051020accepted/tizen/unified/20200824.134349accepted/tizen/6.0/unified/hotfix/20201103.050948accepted/tizen/6.0/unified/20201030.120435tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
Change-Id: I47a817d0f169330d8586b6d4024fa9c4a6857245
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r-- | src/mtp_util_fs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mtp_util_fs.c b/src/mtp_util_fs.c index f279045..a7ff32b 100644 --- a/src/mtp_util_fs.c +++ b/src/mtp_util_fs.c @@ -341,7 +341,6 @@ mtp_bool _util_copy_dir_children_recursive(const mtp_char *origpath, { DIR *dir = NULL; struct dirent *entry; - mtp_int32 retval = 0; mtp_char old_pathname[MTP_MAX_PATHNAME_SIZE + 1] = { 0 }; mtp_char new_pathname[MTP_MAX_PATHNAME_SIZE + 1] = { 0 }; struct stat entryinfo; @@ -475,7 +474,7 @@ mtp_bool _util_copy_dir_children_recursive(const mtp_char *origpath, } closedir(dir); - return (retval == 0) ? TRUE : FALSE; + return TRUE; } mtp_bool _util_file_move(const mtp_char *origpath, const mtp_char *newpath, |