summaryrefslogtreecommitdiffstats
path: root/src/file_ace.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:19:03 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:19:03 +0100
commit134ce684e2591df9d1ede0865b7713ea311c3486 (patch)
treec754073e5084994f231daf5fe89679b55d1ac58d /src/file_ace.c
parent42428f901ced65f7368e0a152509215d603cc98b (diff)
file_check_ace(): avoid a gcc warning
Diffstat (limited to 'src/file_ace.c')
-rw-r--r--src/file_ace.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/file_ace.c b/src/file_ace.c
index 656860f..96e3701 100644
--- a/src/file_ace.c
+++ b/src/file_ace.c
@@ -141,9 +141,7 @@ static void file_check_ace(file_recovery_t *file_recovery)
while (len>0)
{
const unsigned int count = ((len>BUF_SIZE) ? BUF_SIZE : len);
- const int bytes = fread(buffer, 1, count, file_recovery->handle);
-
- if (bytes != count)
+ if(fread(buffer, 1, count, file_recovery->handle) != count)
{
#ifdef DEBUG_ACE
log_trace("file_ace: truncated file\n");