Coverity issue fixes for email service 79/200079/1 accepted/tizen/unified/20190219.154034 submit/tizen/20190219.050159
authorkamaljeet <kamal.jc@samsung.com>
Tue, 19 Feb 2019 04:21:04 +0000 (09:51 +0530)
committerkamaljeet <kamal.jc@samsung.com>
Tue, 19 Feb 2019 04:21:04 +0000 (09:51 +0530)
Change-Id: Ie3531032110af33698d18491d892d0d107bcc0c1
Signed-off-by: kamaljeet <kamal.jc@samsung.com>
email-core/email-core-mail.c

index 9b00f85..c5c659b 100755 (executable)
@@ -2271,11 +2271,11 @@ FINISH_OFF:
 
        if (!auto_download) {
                if (ret == TRUE)
-                       if (emcore_notify_network_event(NOTI_DOWNLOAD_ATTACH_FINISH, mail_id, NULL, nth, 0) != 1)
+                       if (!emcore_notify_network_event(NOTI_DOWNLOAD_ATTACH_FINISH, mail_id, NULL, nth, 0))
                                EM_DEBUG_LOG(">>>>>>emcore_notify_network_event failed \n ");
                else {
                        if (err != EMAIL_ERROR_CANCELLED)
-                               if (emcore_notify_network_event(NOTI_DOWNLOAD_ATTACH_FAIL, mail_id, NULL, nth, err) != 1)
+                               if (!emcore_notify_network_event(NOTI_DOWNLOAD_ATTACH_FAIL, mail_id, NULL, nth, err))
                                        EM_DEBUG_LOG(">>>>>>emcore_notify_network_event failed \n ");
                }
        }
@@ -3337,10 +3337,10 @@ FINISH_OFF:
 
        if (!auto_download) {
                if (ret == TRUE)
-                       if (emcore_notify_network_event(NOTI_DOWNLOAD_BODY_FINISH, mail_id, NULL, event_handle, 0) != 0)
+                       if (!emcore_notify_network_event(NOTI_DOWNLOAD_BODY_FINISH, mail_id, NULL, event_handle, 0))
                                EM_DEBUG_LOG(">>>>> emcore_notify_network_event failed \n ");
                else
-                       if (emcore_notify_network_event(NOTI_DOWNLOAD_BODY_FAIL, mail_id, NULL, event_handle, err) != 0)
+                       if (!emcore_notify_network_event(NOTI_DOWNLOAD_BODY_FAIL, mail_id, NULL, event_handle, err))
                                EM_DEBUG_LOG(">>>>> emcore_notify_network_event failed \n ");
        }