summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index a9282c5..9bd7f21 100644
--- a/inotail.c
+++ b/inotail.c
@@ -512,7 +512,7 @@ int main(int argc, char **argv)
struct stat finfo;
int rc = fstat(STDIN_FILENO, &finfo);
- if (rc == -1) {
+ if (unlikely(rc == -1)) {
fprintf(stderr, "Error: Could not stat stdin (%s)\n", strerror(errno));
exit(EXIT_FAILURE);
}