Commit da2414e9335d2116687fdc914daf12f443d9b87c

Authored by bellard
1 parent a7350fa1

moved misplaced declaration


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1827 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 1 deletions
block-vvfat.c
... ... @@ -1578,10 +1578,12 @@ static uint32_t get_cluster_count_for_direntry(BDRVVVFATState* s,
1578 1578 mapping = find_mapping_for_cluster(s, cluster_num);
1579 1579  
1580 1580 if (mapping) {
  1581 + const char* basename;
  1582 +
1581 1583 assert(mapping->mode & MODE_DELETED);
1582 1584 mapping->mode &= ~MODE_DELETED;
1583 1585  
1584   - const char* basename = get_basename(mapping->path);
  1586 + basename = get_basename(mapping->path);
1585 1587  
1586 1588 assert(mapping->mode & MODE_NORMAL);
1587 1589  
... ...