From 4354712ccb30f995ecf57345074e31c2d2a78134 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 8 Jul 2016 19:06:57 +0900 Subject: [PATCH] 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)) -- 2.7.4