diff options
author | Kichan Kwon <k_c.kwon@samsung.com> | 2020-04-23 11:47:26 +0900 |
---|---|---|
committer | Kichan Kwon <k_c.kwon@samsung.com> | 2020-04-23 14:15:50 +0900 |
commit | bdf612dc29c530dcebba4d68a8998b037d5e63fc (patch) | |
tree | 611be2c3e672bfcb98d59319dba33223c7142408 | |
parent | ee88ac07426a5cd1e0763bc4c4afa4c06aca9284 (diff) | |
download | libtota-tizen_6.0_hotfix.tar.gz libtota-tizen_6.0_hotfix.tar.bz2 libtota-tizen_6.0_hotfix.zip |
Fix strtoul error checkingtizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114804submit/tizen_6.0_hotfix/20201102.192504submit/tizen_6.0/20201029.205104submit/tizen/20200526.104742accepted/tizen/unified/20200528.132852accepted/tizen/6.0/unified/hotfix/20201103.003857accepted/tizen/6.0/unified/20201030.115637tizen_6.0_hotfixaccepted/tizen_6.0_unified_hotfix
Change-Id: Iae973801894f6afe13aa4e5ae61765e19dd53a4b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
-rwxr-xr-x | ss_engine/fota_tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ss_engine/fota_tar.c b/ss_engine/fota_tar.c index 7b1fd14..9da5db6 100755 --- a/ss_engine/fota_tar.c +++ b/ss_engine/fota_tar.c @@ -832,8 +832,8 @@ int tar_get_folder_size(char *tar, char *item) LOG("size too big. (size_dec=0x%08X)\n", (unsigned int)size_dec); ret = -1; break; - } else if (size_dec == 0) { - LOG("strtoul failed, size_oct is %s\n", size_oct); + } else if (size_dec == (off_t)-1) { + LOG("strtoul failed. (errno=%d)\n", errno); ret = -1; break; } |