diff options
author | kamaljeet <kamal.jc@samsung.com> | 2019-02-19 09:51:04 +0530 |
---|---|---|
committer | kamaljeet <kamal.jc@samsung.com> | 2019-02-19 09:51:04 +0530 |
commit | 999c4fe067fcda1327c65f0b324ea21f21a808dd (patch) | |
tree | 53844d3b8494e44aacb1d1f83221769b03d04ade | |
parent | b49cf5b838078a45e5fb6df623a0f762027f3ea5 (diff) | |
download | email-service-submit/tizen/20190219.050159.tar.gz email-service-submit/tizen/20190219.050159.tar.bz2 email-service-submit/tizen/20190219.050159.zip |
Coverity issue fixes for email servicesubmit/tizen/20190219.050159accepted/tizen/unified/20190219.154034
Change-Id: Ie3531032110af33698d18491d892d0d107bcc0c1
Signed-off-by: kamaljeet <kamal.jc@samsung.com>
-rwxr-xr-x | email-core/email-core-mail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/email-core/email-core-mail.c b/email-core/email-core-mail.c index 9b00f85..c5c659b 100755 --- a/email-core/email-core-mail.c +++ b/email-core/email-core-mail.c @@ -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 "); } |