From da2414e9335d2116687fdc914daf12f443d9b87c Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 23 Apr 2006 14:36:41 +0000 Subject: moved misplaced declaration git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1827 c046a42c-6fe2-441c-8c8c-71466251a162 --- block-vvfat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3