fsmonitor: coverity - fsmonitor_fd cannot be negative

This commit is contained in:
Jaroslav Kysela 2014-10-03 14:57:07 +02:00
parent 60aa4e2658
commit fc915fcdc4

View file

@ -53,7 +53,7 @@ fsmonitor_thread ( void* p )
fsmonitor_link_t *fml;
fsmonitor_t *fsm;
while (1) {
while (fsmonitor_fd >= 0) {
/* Wait for event */
c = read(fsmonitor_fd, buf, sizeof(buf));