From bca0e9ec6458f92795ca1f032ae94325cf285914 Mon Sep 17 00:00:00 2001 From: Abhimanyu Swami Date: Mon, 21 Jun 2021 11:24:30 +0530 Subject: [PATCH] Coverity fix: check return type Change-Id: I88f0784cebd9684bd3c00d00902216ea919e857f Signed-off-by: Abhimanyu Swami --- manager/src/msg-manager-notification.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manager/src/msg-manager-notification.cpp b/manager/src/msg-manager-notification.cpp index 4b00f08..cac8942 100644 --- a/manager/src/msg-manager-notification.cpp +++ b/manager/src/msg-manager-notification.cpp @@ -1291,7 +1291,8 @@ void setActiveText(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info) wrn = snprintf(attach_string, sizeof(attach_string), "%d attachments", noti_info->active_media_cnt); if(wrn<0) MSG_MGR_INFO("snprintf was failed"); - notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, attach_string, MSG_PD_ATTACHMENTS, NOTIFICATION_VARIABLE_TYPE_INT, noti_info->active_media_cnt, NOTIFICATION_VARIABLE_TYPE_NONE); + if (notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, attach_string, MSG_PD_ATTACHMENTS, NOTIFICATION_VARIABLE_TYPE_INT, noti_info->active_media_cnt, NOTIFICATION_VARIABLE_TYPE_NONE) != NOTIFICATION_ERROR_NONE) + MSG_MGR_DEBUG("notification_set_text() failed"); } else if (noti_info->active_media_cnt == 1) { setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, "1 attachment", MSG_SINGLE_ATTACHMENT); } -- 2.7.4