summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-03-17 17:48:13 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2018-03-17 17:48:13 +0100
commite5a5e71d7c25ff3b7d61183b387a312fe8c769c3 (patch)
tree60614afeb7a51170409bd5bca0fce93055b743cc
parentff49c01d42b66baf1ce67fea60eb2431c2bf6f97 (diff)
Remove useless initialisation of update_blocksize variable in update_blocksize()
-rw-r--r--src/photorec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/photorec.c b/src/photorec.c
index 5b316f4..0273a39 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -448,7 +448,7 @@ unsigned int find_blocksize(alloc_data_t *list_search_space, const unsigned int
void update_blocksize(const unsigned int blocksize, alloc_data_t *list_search_space, const uint64_t offset)
{
- struct td_list_head *search_walker = NULL;
+ struct td_list_head *search_walker;
struct td_list_head *search_walker_prev = NULL;
log_info("blocksize=%u, offset=%u\n", blocksize, (unsigned int)(offset%blocksize));
/* Align end of last range (round up) */