summaryrefslogtreecommitdiffstats
path: root/src/phbf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-10-31 17:14:22 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-10-31 17:14:22 +0100
commit173e66e1bc9e04d171097eb57d42692fd4440126 (patch)
tree0f6d13deadc45a0bf60a8a6aaf4a1e3bc6c955d2 /src/phbf.c
parent1fe68dd2b4eb2acca20132e52da6212360c84211 (diff)
PhotoRec: remove has_value field in file_check_list_t
Diffstat (limited to 'src/phbf.c')
-rw-r--r--src/phbf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phbf.c b/src/phbf.c
index 4a9b915..b8f3c37 100644
--- a/src/phbf.c
+++ b/src/phbf.c
@@ -197,7 +197,7 @@ int photorec_bf(disk_t *disk_car, partition_t *partition, const int verbose, con
{
struct td_list_head *tmp;
const file_check_list_t *pos=td_list_entry(tmpl, file_check_list_t, list);
- td_list_for_each(tmp, &pos->file_checks[pos->has_value==0?0:buffer[pos->offset]].list)
+ td_list_for_each(tmp, &pos->file_checks[buffer[pos->offset]].list)
{
const file_check_t *file_check=td_list_entry(tmp, file_check_t, list);
if((file_check->length==0 || memcmp(buffer + file_check->offset, file_check->value, file_check->length)==0) &&