summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-07-14 11:04:55 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-07-14 11:04:55 +0200
commitcff1fbb349e9a88fc7ef4b63df45440703414f2e (patch)
tree07527449850270441b95acf19e763590219607f1 /src
parentecfe21affdc6b5b6cc787b9c5ef3a2a05f264fd9 (diff)
Move insert_error variable definition
Diffstat (limited to 'src')
-rw-r--r--src/ppartsel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppartsel.c b/src/ppartsel.c
index 028338f..75aaba0 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);