From: Abhimanyu Swami Date: Mon, 21 Jun 2021 05:54:30 +0000 (+0530) Subject: Coverity fix: check return type X-Git-Tag: submit/tizen/20210726.065519^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_6.5_unified;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git Coverity fix: check return type Change-Id: I88f0784cebd9684bd3c00d00902216ea919e857f Signed-off-by: Abhimanyu Swami --- 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); }