summaryrefslogtreecommitdiffstats
path: root/src/ntfs_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-10-31 16:58:05 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-10-31 16:58:05 +0100
commit5f79e71124d3427ecf8c0c9e73e5fd24f9809c9c (patch)
treeb5ecccc8843be174b585360eb2ca7cf9fcb886ee /src/ntfs_adv.c
parentf40809b1311553cf9d3c8c92e125f6bf17a79859 (diff)
Affect default values to mft_lcn and mftmirr_lcn that may be used uninitialized otherwise.
Diffstat (limited to 'src/ntfs_adv.c')
-rw-r--r--src/ntfs_adv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntfs_adv.c b/src/ntfs_adv.c
index 1178d6e..12b9a30 100644
--- a/src/ntfs_adv.c
+++ b/src/ntfs_adv.c
@@ -447,8 +447,8 @@ int rebuild_NTFS_BS(disk_t *disk_car, partition_t *partition, const int verbose,
char buffer[8*DEFAULT_SECTOR_SIZE];
int ind_stop=0;
unsigned int sectors_per_cluster=0;
- uint64_t mft_lcn;
- uint64_t mftmirr_lcn;
+ uint64_t mft_lcn=0;
+ uint64_t mftmirr_lcn=0;
unsigned int mft_record_size=1024;
info_mft_t info_mft[MAX_INFO_MFT];
unsigned int nbr_mft=0;