summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-08-01 17:47:11 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-08-01 17:47:11 +0200
commit1c738df411035403749b08c3b5ec728754be2e7a (patch)
treef75ff5cd3ff40e4f76766e4d4c7501de0cfca8fb /src/fat_adv.c
parentbf01cca6d0eefc512ad798be36acf10ab91dff9f (diff)
FAT rebuild: when only one fat is found, the fat length can't be calculated.
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index 9c595f5..77aa3df 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -1840,6 +1840,7 @@ static upart_type_t select_fat_info(const info_offset_t *info_offset, const unsi
if(fat2_location == *reserved)
{
*fats=1;
+ *fat_length=0;
}
else if(fat2_location > *reserved)
{