diff --git a/src/util-io.h b/src/util-io.h index 26cf02a..21d5d81 100644 --- a/src/util-io.h +++ b/src/util-io.h @@ -127,7 +127,7 @@ xerrno(int value) static inline int xclose(int fd) { - if (fd != -1) { + if (fd > -1) { /* Not SYSCALL(), see libei MR!261#note_2131802 */ close(fd); }