summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-05-19 14:13:24 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-05-19 14:13:24 +0200
commitc849ac047db045f6134e7d5edd82a706faf249d0 (patch)
treeb113cafafedd644c66d89016dad0b8850e7884f6 /src/photorec.c
parent097541329828425a374210da147ce818b1d40e36 (diff)
Add .travis.yml in Makefile.am
Small code style modification
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/photorec.c b/src/photorec.c
index 68c8159..31ffbb2 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -907,14 +907,20 @@ static inline void file_block_remove_from_sp(alloc_data_t *list_search_space, al
alloc_data_t *tmp;
tmp=td_list_entry(search_walker, alloc_data_t, list);
if(tmp->start <= *offset && *offset + blocksize <= tmp->end + 1)
- return file_block_remove_from_sp_aux(tmp, new_current_search_space, offset, blocksize);
+ {
+ file_block_remove_from_sp_aux(tmp, new_current_search_space, offset, blocksize);
+ return;
+ }
}
td_list_for_each(search_walker, &list_search_space->list)
{
alloc_data_t *tmp;
tmp=td_list_entry(search_walker, alloc_data_t, list);
if(tmp->start <= *offset && *offset + blocksize <= tmp->end + 1)
- return file_block_remove_from_sp_aux(tmp, new_current_search_space, offset, blocksize);
+ {
+ file_block_remove_from_sp_aux(tmp, new_current_search_space, offset, blocksize);
+ return ;
+ }
}
log_critical("file_block_remove_from_sp(list_search_space, alloc_data_t **new_current_search_space, uint64_t *offset, const unsigned int blocksize) failed\n");
}