From: Randeep Singh Date: Mon, 1 Oct 2018 06:09:41 +0000 (+0530) Subject: Resolved svace issue X-Git-Tag: accepted/tizen/unified/20181207.061509^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=437379930554e19076244e98b61a2506027fcaa6;p=platform%2Fcore%2Faccount%2Ffido-asm.git Resolved svace issue Change-Id: I1745aab3bea98af14a8726f76753d799132ab47f Signed-off-by: Randeep Singh --- diff --git a/common/cryptoutil/src/AsmCrypto.cpp b/common/cryptoutil/src/AsmCrypto.cpp old mode 100755 new mode 100644 index f919196..bbd4f3d --- a/common/cryptoutil/src/AsmCrypto.cpp +++ b/common/cryptoutil/src/AsmCrypto.cpp @@ -267,8 +267,11 @@ AsmCrypto::getAsmToken(void) SAFE_DELETE(realpath_res); return std::string(); } + int ret = fseek(file, 0, SEEK_SET); - fseek(file, 0, SEEK_SET); + if(0 != ret) { + _INFO("fseek returned error code[%d]", ret); + } char *config = (char*)(calloc(1, size + 1)); int num_bytes = fread(config, size, 1, file);