summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-01-27 08:44:59 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-01-27 08:44:59 +0100
commitf571d947335609e68698acfb6538f23f6c9f3891 (patch)
tree308a2bdd357c478558b0a0748798c19afc5f5990 /src/ntfs_dir.c
parent71d5bddcff73d44c23245bec20eda5115c38fd02 (diff)
ntfs_copy() make two variables more locals (code style)
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 18e5185..82f4fd0 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -386,7 +386,6 @@ static int ntfs_copy(disk_t *disk_car, const partition_t *partition, dir_data_t
char *new_file;
ntfs_attr *attr=NULL;
FILE *f_out;
- s64 bytes_read, written;
s64 offset;
u32 block_size;
const char *stream_name=NULL;
@@ -440,6 +439,7 @@ static int ntfs_copy(disk_t *disk_car, const partition_t *partition, dir_data_t
offset = 0;
for (;;)
{
+ s64 bytes_read, written;
if (block_size > 0) {
// These types have fixup
bytes_read = ntfs_attr_mst_pread(attr, offset, 1, block_size, buffer);