From 4f4b50d777a827a0096704e9497a524637f04b80 Mon Sep 17 00:00:00 2001
From: Piotr Kosko
Date: Fri, 18 Mar 2016 14:29:42 +0100
Subject: [PATCH] [Messaging] SVACE issues resolved
[Verification] TCT results 100%
Change-Id: I3121295de6b8c4ba01d8eb1f0362b2b1dce21aae
Signed-off-by: Piotr Kosko
---
src/messaging/message.cc | 1 -
src/messaging/messaging_util.cc | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/messaging/message.cc b/src/messaging/message.cc
index d438dbcb..196bf078 100755
--- a/src/messaging/message.cc
+++ b/src/messaging/message.cc
@@ -793,7 +793,6 @@ PlatformResult Message::addMMSBodyAndAttachmentsToStruct(const AttachmentPtrVect
// check if file exists
struct stat st = {0};
if (stat(const_cast(filepath.c_str()), &st)) {
- LoggerE("Stat error: %d (%s)", errno, strerror(errno));
return LogAndCreateResult(ErrorCode::UNKNOWN_ERR,
"Attachment file not found",
("att[%d]: attachment file not found", i));
diff --git a/src/messaging/messaging_util.cc b/src/messaging/messaging_util.cc
index 31e037dd..f6a3c7a5 100755
--- a/src/messaging/messaging_util.cc
+++ b/src/messaging/messaging_util.cc
@@ -761,6 +761,8 @@ PlatformResult MessagingUtil::jsonToMessage(const picojson::value& json,
break;
default:
LoggerE("Not supported message type");
+ return LogAndCreateResult(
+ ErrorCode::INVALID_VALUES_ERR, "Not supported message type");
break;
}
--
2.34.1