diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ffhash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ffhash.c b/tools/ffhash.c index a9f71c2..6942527 100644 --- a/tools/ffhash.c +++ b/tools/ffhash.c @@ -94,9 +94,10 @@ static int check(char *file) for (;;) { int size = read(fd, buffer, SIZE); if (size < 0) { + int err = errno; close(fd); finish(); - printf("+READ-FAILED: %s", strerror(errno)); + printf("+READ-FAILED: %s", strerror(err)); ret = 2; goto end; } else if(!size) |