From: kamaljeet Date: Sat, 16 Feb 2019 13:20:54 +0000 (+0530) Subject: Coverity issue fixes X-Git-Tag: accepted/tizen/5.5/unified/20191031.030227^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_5.5_tv;p=platform%2Fcore%2Fapi%2Femail.git Coverity issue fixes Change-Id: Ib60f27481556c87b7c7e51edef6cca0fc6950c0e Signed-off-by: kamaljeet --- diff --git a/src/email.c b/src/email.c index d333fc6..0141138 100755 --- a/src/email.c +++ b/src/email.c @@ -386,7 +386,8 @@ int email_add_attach(email_h msg, const char *filepath) email_attachment_data_t *new_attach = msg_s->attachment; struct stat st; - stat(filepath, &st); + if (stat(filepath, &st) != 0) + LOGE("stat () failed to provide the status \n"); if (st.st_size > 10*1024*1024) { /* LCOV_EXCL_START */