ecore pipe - fix new coverity complaint about using closed socket

this should fix CID 1374297
This commit is contained in:
Carsten Haitzler 2017-04-18 14:21:06 +09:00
parent 1eb36e6f84
commit 352174784e
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ _ecore_pipe_wait(Ecore_Pipe *p,
p->message = 0; p->message = 0;
} }
if (fd_timer_found) if ((fd_timer_found) && (p->timerfd != PIPE_FD_INVALID))
{ {
pipe_read(p->timerfd, &timerfdbuf, sizeof(timerfdbuf)); pipe_read(p->timerfd, &timerfdbuf, sizeof(timerfdbuf));
_ecore_pipe_unhandle(p); _ecore_pipe_unhandle(p);