fixed issue #29: bad if test?

This commit is contained in:
Andrey Kosteltsev 2014-07-31 00:35:28 +04:00 committed by Alejandro Mery
parent e2a3f16e36
commit bdc13f4b98

3
fexc.c
View File

@ -68,8 +68,7 @@ static inline char *read_all(int fd, const char *filename, size_t *size)
p = buf + count;
}
}
} else if (errno != EAGAIN ||
errno != EINTR) {
} else if (errno != EAGAIN && errno != EINTR) {
pr_err("%s: %s: %s\n", filename,
"read", strerror(errno));
free(buf);