projects
/
platform
/
core
/
messaging
/
email-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcae8b3
)
Coverity fix: check return type
37/260137/1
author
Abhimanyu Swami
<abhimanyu1.s@samsung.com>
Mon, 21 Jun 2021 05:53:40 +0000
(11:23 +0530)
committer
Abhimanyu Swami
<abhimanyu1.s@samsung.com>
Mon, 21 Jun 2021 05:53:40 +0000
(11:23 +0530)
Change-Id: Ia5f33c0e5a4f663b93ee0471c42a250194e2cd1c
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
email-daemon/main.c
patch
|
blob
|
history
diff --git
a/email-daemon/main.c
b/email-daemon/main.c
index 69efe4785b147e6f5fea537ce19b687a79d281fc..acaaeb755186a3d97432d7d06e2d912fa1fdb0af 100755
(executable)
--- a/
email-daemon/main.c
+++ b/
email-daemon/main.c
@@
-4213,7
+4213,8
@@
gboolean callback_for_del_account(GIOChannel *ch, GIOCondition cond, gpointer da
static int db_del = 0;
int event = 0;
gsize len = 0;
- g_io_channel_read_chars(ch, (gchar*) &event, sizeof(event), &len, NULL);
+ if (g_io_channel_read_chars(ch, (gchar*) &event, sizeof(event), &len, NULL) == G_IO_STATUS_ERROR)
+ EM_DEBUG_LOG("g_io_channel_read_chars() failed");
if (event == EMAIL_SIGNAL_DB_DELETED) {
db_del = 1;