Coverity fix: check return type 38/260138/2 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20211028.115427 accepted/tizen/unified/20210728.090618 submit/tizen/20210726.065519 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Mon, 21 Jun 2021 05:54:30 +0000 (11:24 +0530)
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>
Tue, 22 Jun 2021 10:58:18 +0000 (10:58 +0000)
Change-Id: I88f0784cebd9684bd3c00d00902216ea919e857f
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
manager/src/msg-manager-notification.cpp

index 4b00f08..cac8942 100644 (file)
@@ -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);
                                }