diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-23 14:36:41 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-23 14:36:41 +0000 |
commit | da2414e9335d2116687fdc914daf12f443d9b87c (patch) | |
tree | 18c369f511f3cae9e4fa5ea0424f783e973f7e56 | |
parent | a7350fa109d9b6d33f6a0501ed9fc45d0fba27d0 (diff) |
moved misplaced declaration
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1827 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | block-vvfat.c | 4 |
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); |