From cff1fbb349e9a88fc7ef4b63df45440703414f2e Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 14 Jul 2012 11:04:55 +0200 Subject: [PATCH] Move insert_error variable definition --- src/ppartsel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ppartsel.c b/src/ppartsel.c index 028338fc..75aaba0c 100644 --- a/src/ppartsel.c +++ b/src/ppartsel.c @@ -76,7 +76,6 @@ static int spacerange_cmp(const struct td_list_head *a, const struct td_list_hea void menu_photorec(struct ph_param *params, struct ph_options *options, alloc_data_t*list_search_space) { - int insert_error=0; list_part_t *list_part; list_part_t *current_element; unsigned int current_element_num; @@ -100,6 +99,7 @@ void menu_photorec(struct ph_param *params, struct ph_options *options, alloc_da params->blocksize=0; list_part=params->disk->arch->read_part(params->disk,options->verbose,0); { + int insert_error=0; partition_t *partition_wd; partition_wd=new_whole_disk(params->disk); list_part=insert_new_partition(list_part, partition_wd, 0, &insert_error);