raster pushed a commit to branch master.

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

commit 4354712ccb30f995ecf57345074e31c2d2a78134
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Jul 8 19:06:57 2016 +0900

    emotion xine module - silence coverity complaint
    
    getting the fd from a valid fd handler wont return < 0 but in theory
    it can, so just be silent coverity
    
    silence CID 1357155
---
 src/modules/emotion/xine/emotion_xine.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/emotion/xine/emotion_xine.c 
b/src/modules/emotion/xine/emotion_xine.c
index c655f20..5faf21d 100644
--- a/src/modules/emotion/xine/emotion_xine.c
+++ b/src/modules/emotion/xine/emotion_xine.c
@@ -1146,6 +1146,7 @@ _em_fd_active(void *data EINA_UNUSED, Ecore_Fd_Handler 
*fdh)
    Emotion_Xine_Video_Frame *fr;
    
    fd = ecore_main_fd_handler_fd_get(fdh);
+   if (fd < 0) return EINA_TRUE;
    while ((len = read(fd, &buf, sizeof(buf))) > 0)
      {
        if (len == sizeof(buf))

-- 


Reply via email to