raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=eb1650d5f2442ea78f27e0cd44a119d0fb416a82

commit eb1650d5f2442ea78f27e0cd44a119d0fb416a82
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Jul 8 19:15:10 2016 +0900

    emotion xine module - silence coverity
    
    silence CID 1357140 as its harmless to not check fcntl here, but dont
    confuse coverity.
---
 src/modules/emotion/xine/emotion_xine.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/emotion/xine/emotion_xine.c 
b/src/modules/emotion/xine/emotion_xine.c
index 5faf21d..14e3b48 100644
--- a/src/modules/emotion/xine/emotion_xine.c
+++ b/src/modules/emotion/xine/emotion_xine.c
@@ -352,7 +352,8 @@ em_add(const Emotion_Engine *api EINA_UNUSED,
      {
        ev->fd_slave_read = fds[0];
        ev->fd_slave_write = fds[1];
-       fcntl(ev->fd_slave_write, F_SETFL, O_NONBLOCK);
+       if (fcntl(ev->fd_slave_write, F_SETFL, O_NONBLOCK) != 0)
+          ERR("Can't fcntl() slave write fd");
      }
    ev->volume = 0.8;
    ev->delete_me = 0;

-- 


Reply via email to