From 7e2b0aad08cef0c4eb671d29abfd486fd3689a72 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Tue, 30 Mar 2004 14:00:35 +0000 Subject: [PATCH] Move declaration of variable to beginning of block. Thanks to Alexei Alexandrov for the fix. (Logical change 1.350) --- ntfsprogs/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ntfsprogs/utils.c b/ntfsprogs/utils.c index 91039222..4a42cae1 100644 --- a/ntfsprogs/utils.c +++ b/ntfsprogs/utils.c @@ -968,8 +968,10 @@ int mft_next_record (struct mft_search_ctx *ctx) } for (ctx->mft_num++; (s64)ctx->mft_num < ctx->vol->nr_mft_records; ctx->mft_num++) { + int in_use; + ctx->flags_match = 0; - int in_use = utils_mftrec_in_use (ctx->vol, (MFT_REF) ctx->mft_num); + in_use = utils_mftrec_in_use (ctx->vol, (MFT_REF) ctx->mft_num); if (in_use == -1) { Eprintf ("Error reading inode %llu. Aborting.", (unsigned long long)ctx->mft_num);