diff options
author | Christophe Grenier <[email protected]> | 2015-09-25 20:28:02 +0200 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2015-09-25 20:28:02 +0200 |
commit | 21827baef53aaa4a8c97f35850722b93c42f5914 (patch) | |
tree | dea0e9de7cbda866a271b59c487a34688f19c9d2 /src | |
parent | 5014cb00c58bf84b6e04a982f9ef08ecc6873438 (diff) |
Fix regression introduced in commit 00557961744f0a88000678db179a84a4a0e4fdfd
Diffstat (limited to 'src')
-rw-r--r-- | src/filegen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filegen.c b/src/filegen.c index 623fe4ec..d80097c3 100644 --- a/src/filegen.c +++ b/src/filegen.c @@ -604,7 +604,6 @@ void get_prev_location_smart(alloc_data_t *list_search_space, alloc_data_t **cur int nbr; if(offset_skipped_header==0) return ; - offset_skipped_header=0; /* Search backward the first fragment of a file not successfully recovered * Limit the search to 3 fragments or 200 MB */ for(nbr=0; nbr<3 && size < (uint64_t)200*1024*1024; nbr++) @@ -616,6 +615,7 @@ void get_prev_location_smart(alloc_data_t *list_search_space, alloc_data_t **cur { *current_search_space=file_space; *offset=offset_skipped_header; + offset_skipped_header=0; return ; } if(file_space->start < prev_location) @@ -624,4 +624,5 @@ void get_prev_location_smart(alloc_data_t *list_search_space, alloc_data_t **cur *current_search_space=file_space; *offset=file_space->start; } + offset_skipped_header=0; } |