qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] fix misplaced declaration in block-vvfat.c


From: Heikki Lindholm
Subject: [Qemu-devel] [PATCH] fix misplaced declaration in block-vvfat.c
Date: Sat, 22 Apr 2006 10:12:34 +0300
User-agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923)

Fix a misplaced variable declaration in block-vvfat.c

-- Heikki Lindholm
--- qemu/block-vvfat.c  2005-12-20 00:11:49.000000000 +0200
+++ qemu-build/block-vvfat.c    2006-04-22 09:48:23.000000000 +0300
@@ -1578,10 +1578,12 @@
        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);
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]