summaryrefslogtreecommitdiffstats
path: root/src/ntfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-17 17:02:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-17 17:02:39 +0200
commita0f0f7e9de1da4feb5f8f64e9680afa965be555f (patch)
treeb56db31b10b7513df02d90c4ca331870c6ee8dff /src/ntfs.c
parent1e548f115bf8866da405d2f9d492da578b97eccf (diff)
ntfs_get_attr_aux(): make "attr_type" variable more local
Diffstat (limited to 'src/ntfs.c')
-rw-r--r--src/ntfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfs.c b/src/ntfs.c
index 9806a05..957fd3e 100644
--- a/src/ntfs.c
+++ b/src/ntfs.c
@@ -205,9 +205,9 @@ int ntfs_get_attr(const char *mft_record, const int my_type, partition_t *partit
static int ntfs_get_attr_aux(const char *attr_record, const int my_type, partition_t *partition, const char *end, const int verbose, const char*file_name_to_find)
{
- int attr_type;
while(1)
{
+ int attr_type;
/* Resident attributes attr_len>=24(0x18), non resident is bigger */
unsigned int attr_len;
if(attr_record+0x18>=end)