Commit bdc13f4b authored by Andrey Kosteltsev's avatar Andrey Kosteltsev Committed by Alejandro Mery
Browse files

fixed issue #29: bad if test?

parent e2a3f16e
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment