From 155a102a456e12a0d233dffd78647e59fdc7fafa Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 9 Jul 2015 08:22:05 +0900 Subject: [PATCH] ecore anim - oops. coverity silence checked wrong value for read/write fix --- src/lib/ecore/ecore_anim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c index feb7456e40..434c73ca9d 100644 --- a/src/lib/ecore/ecore_anim.c +++ b/src/lib/ecore/ecore_anim.c @@ -87,7 +87,7 @@ static void _tick_send(char val) { DBG("_tick_send(%i)", val); - if (pipe_write(timer_fd_write, &val, 1) != 0) + if (pipe_write(timer_fd_write, &val, 1) != 1) { ERR("Cannot write to animator control fd"); } @@ -140,7 +140,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread) } if ((ret == 1) && (FD_ISSET(timer_fd_read, &rfds))) { - if (pipe_read(timer_fd_read, &tick, sizeof(tick)) != 0) + if (pipe_read(timer_fd_read, &tick, sizeof(tick)) != 1) { ERR("Cannot read from animator control fd"); }