summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChakradhar <v.pogiri@samsung.com>2018-09-22 14:36:22 +0530
committerChakradhar <v.pogiri@samsung.com>2018-09-26 18:10:16 +0530
commit0af19bdc3441509806a32e92ccb77d9bccd5d4d0 (patch)
tree70a51ac5ab21fc1a85f0e043db98e767265af65c
parent3494b2bb351837ea85ca629ceb02ecbe0e5e3bb3 (diff)
downloadmsg-service-0af19bdc3441509806a32e92ccb77d9bccd5d4d0.tar.gz
msg-service-0af19bdc3441509806a32e92ccb77d9bccd5d4d0.tar.bz2
msg-service-0af19bdc3441509806a32e92ccb77d9bccd5d4d0.zip
Resolved coverity isssues
Change-Id: If6fa903b55dbd314849fddeb1503c7521314f357 Signed-off-by: Chakradhar <v.pogiri@samsung.com>
-rwxr-xr-xframework/deliver-handler/MsgDeliverHandler.cpp3
-rw-r--r--manager/src/msg-manager-notification.cpp6
2 files changed, 7 insertions, 2 deletions
diff --git a/framework/deliver-handler/MsgDeliverHandler.cpp b/framework/deliver-handler/MsgDeliverHandler.cpp
index c87d802..0ffeca5 100755
--- a/framework/deliver-handler/MsgDeliverHandler.cpp
+++ b/framework/deliver-handler/MsgDeliverHandler.cpp
@@ -248,7 +248,8 @@ msg_error_t MsgHandleIncomingMsg(MSG_MESSAGE_INFO_S *pMsgInfo, bool *pSendNoti)
}
int activated_conv_id = -1;
- MsgSettingGetInt(VCONFKEY_MESSAGE_ACTIVATED_CONVERSATION_ID, &activated_conv_id);
+ if (MsgSettingGetInt(VCONFKEY_MESSAGE_ACTIVATED_CONVERSATION_ID, &activated_conv_id) != MSG_SUCCESS)
+ MSG_ERR("MsgSettingGetInt() is failed");
if (activated_conv_id > 0 && (unsigned int)activated_conv_id == pMsgInfo->threadId) {
MSG_WARN("Update message read status of current activated thread. [%d]", pMsgInfo->threadId);
diff --git a/manager/src/msg-manager-notification.cpp b/manager/src/msg-manager-notification.cpp
index 909a0d6..3a9ec57 100644
--- a/manager/src/msg-manager-notification.cpp
+++ b/manager/src/msg-manager-notification.cpp
@@ -1374,7 +1374,11 @@ int MsgMgrInsertDeliveryReportInstantNotification(msg_mgr_notification_type_t no
MSG_MGR_BEGIN();
notification_h noti = notification_create(NOTIFICATION_TYPE_NOTI);
- notification_set_pkgname(noti, _get_app_id());
+ int noti_err = notification_set_pkgname(noti, _get_app_id());
+
+ if(noti_err != NOTIFICATION_ERROR_NONE){
+ MSG_MGR_ERR("Fail to notification_set_pkgname : %d", noti_err);
+ }
setTextDomain(noti);
setNotiText(noti, NOTIFICATION_TEXT_TYPE_TITLE, "Delivery report", DELIVERY_MESSAGE);