summaryrefslogtreecommitdiffstats
path: root/src/phrecn.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/phrecn.c
parent1fe68dd2b4eb2acca20132e52da6212360c84211 (diff)
PhotoRec: remove has_value field in file_check_list_t
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index cf951bb..d0130a1 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -252,7 +252,7 @@ static int photorec_aux(disk_t *disk_car, partition_t *partition, const int verb
{
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) &&
@@ -653,7 +653,7 @@ static void test_files_aux(disk_t *disk, partition_t *partition, file_recovery_t
{
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) &&