summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-03-12 08:19:42 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2015-03-12 08:19:42 +0100
commit66acdf8ff00eec00063e1b47f496665b25c55ece (patch)
tree22a3aa6a864a21c91b5a9f39bb15b4a4f74ceb69 /src/photorec.c
parent2cd56e46956fabb35e149fa737efb302f3a63ac9 (diff)
file_block_truncate_and_move(): check fseek() return value (code cosmetic)
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/photorec.c b/src/photorec.c
index 9d12907..5ba878b 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -1151,9 +1151,11 @@ void file_block_truncate_and_move(file_recovery_t *file_recovery, alloc_data_t *
else
{
#ifdef HAVE_FSEEKO
- fseeko(file_recovery->handle, file_recovery->file_size, SEEK_SET);
+ if(fseeko(file_recovery->handle, file_recovery->file_size, SEEK_SET) < 0)
+ return ;
#else
- fseek(file_recovery->handle, file_recovery->file_size, SEEK_SET);
+ if(fseek(file_recovery->handle, file_recovery->file_size, SEEK_SET) < 0)
+ return ;
#endif
}
}