From: Piotr Kosko Date: Fri, 18 Mar 2016 13:29:42 +0000 (+0100) Subject: [Messaging] SVACE issues resolved X-Git-Tag: submit/tizen/20160321.021645~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f4b50d777a827a0096704e9497a524637f04b80;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Messaging] SVACE issues resolved [Verification] TCT results 100% Change-Id: I3121295de6b8c4ba01d8eb1f0362b2b1dce21aae Signed-off-by: Piotr Kosko --- 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; }