summaryrefslogtreecommitdiffstats
path: root/src/ntfs_utl.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-11-13 09:14:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-11-13 09:14:48 +0100
commitcf9eaa3dbb96ce9f480e6e8243193523b01458be (patch)
tree0ba184b5123d4d5441554e66516f15e9554b41ef /src/ntfs_utl.c
parente52f96eb914eb860a6848776e8310a22d18875fd (diff)
Move attr variable definition more local in ntfs_utl.c
Diffstat (limited to 'src/ntfs_utl.c')
-rw-r--r--src/ntfs_utl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfs_utl.c b/src/ntfs_utl.c
index 6f7b216..a34e932 100644
--- a/src/ntfs_utl.c
+++ b/src/ntfs_utl.c
@@ -151,7 +151,6 @@ int utils_cluster_in_use(ntfs_volume *vol, long long lcn)
static long long bmplcn = -sizeof(buffer) - 1; /* Which bit of $Bitmap is in the buffer */
int byte, bit;
- ntfs_attr *attr;
if (!vol) {
errno = EINVAL;
@@ -160,6 +159,7 @@ int utils_cluster_in_use(ntfs_volume *vol, long long lcn)
/* Does lcn lie in the section of $Bitmap we already have cached? */
if ((bmplcn <0 ) || (lcn < bmplcn) || (lcn >= (bmplcn + (sizeof(buffer) << 3)))) {
+ ntfs_attr *attr;
#ifdef DEBUG_NTFS
log_debug("Bit lies outside cache.\n");
#endif