From 437379930554e19076244e98b61a2506027fcaa6 Mon Sep 17 00:00:00 2001 From: Randeep Singh Date: Mon, 1 Oct 2018 11:39:41 +0530 Subject: [PATCH] Resolved svace issue Change-Id: I1745aab3bea98af14a8726f76753d799132ab47f Signed-off-by: Randeep Singh --- common/cryptoutil/src/AsmCrypto.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100755 => 100644 common/cryptoutil/src/AsmCrypto.cpp 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); -- 2.7.4