summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-10-31 17:50:33 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-10-31 17:50:33 +0100
commit7da26dcb1639efd9937dc1c53949f40128fd1dfc (patch)
tree7e1d635cb04e326bd3f7af8d0731d1e6fe3428e9 /src/fat_adv.c
parent3ec90e5b173e43b59deb4640055496e4d79693e6 (diff)
Restrict variable context
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index b6cf8db..39b3d4c 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -1878,7 +1878,6 @@ static upart_type_t select_fat_info(const info_offset_t *info_offset, const unsi
int rebuild_FAT_BS(disk_t *disk_car, partition_t *partition, const int verbose, const int dump_ind,const int interface,const unsigned int expert, char**current_cmd)
{
- unsigned long int data_size;
unsigned long int max_offset;
unsigned int fat_length=0;
unsigned int sectors_per_cluster=0;
@@ -2086,6 +2085,7 @@ int rebuild_FAT_BS(disk_t *disk_car, partition_t *partition, const int verbose,
#endif
if(upart_type && (fat_length>1))
{
+ unsigned long int data_size;
/* Initialized by fat32_free_info */
unsigned int free_cluster_count=0;
unsigned int first_free_cluster=0;