aboutsummaryrefslogtreecommitdiff
path: root/block-vvfat.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-23 14:36:41 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-23 14:36:41 +0000
commitda2414e9335d2116687fdc914daf12f443d9b87c (patch)
tree18c369f511f3cae9e4fa5ea0424f783e973f7e56 /block-vvfat.c
parenta7350fa109d9b6d33f6a0501ed9fc45d0fba27d0 (diff)
moved misplaced declaration
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1827 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-vvfat.c')
-rw-r--r--block-vvfat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block-vvfat.c b/block-vvfat.c
index 36f97134d3..84d2a08ad7 100644
--- a/block-vvfat.c
+++ b/block-vvfat.c
@@ -1578,10 +1578,12 @@ static uint32_t get_cluster_count_for_direntry(BDRVVVFATState* s,
mapping = find_mapping_for_cluster(s, cluster_num);
if (mapping) {
+ const char* basename;
+
assert(mapping->mode & MODE_DELETED);
mapping->mode &= ~MODE_DELETED;
- const char* basename = get_basename(mapping->path);
+ basename = get_basename(mapping->path);
assert(mapping->mode & MODE_NORMAL);