summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>2021-06-21 11:23:40 +0530
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>2021-06-21 11:23:40 +0530
commite3cfcb91d63e226397c983de33f7ce968dcb4a96 (patch)
treea208384b2fc8258920d3b27ecd7b83e39d74ca72
parentfcae8b3cbb6b756aa3a853d60ecc7b1f18d20665 (diff)
downloademail-service-e3cfcb91d63e226397c983de33f7ce968dcb4a96.tar.gz
email-service-e3cfcb91d63e226397c983de33f7ce968dcb4a96.tar.bz2
email-service-e3cfcb91d63e226397c983de33f7ce968dcb4a96.zip
Coverity fix: check return type
Change-Id: Ia5f33c0e5a4f663b93ee0471c42a250194e2cd1c Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
-rwxr-xr-xemail-daemon/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/email-daemon/main.c b/email-daemon/main.c
index 69efe47..acaaeb7 100755
--- 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;