qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Heikki Lindholm <holindho@cs.helsinki.fi>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] fix misplaced declaration in block-vvfat.c
Date: Sat, 22 Apr 2006 10:12:34 +0300	[thread overview]
Message-ID: <4449D762.50608@cs.helsinki.fi> (raw)

[-- Attachment #1: Type: text/plain, Size: 74 bytes --]

Fix a misplaced variable declaration in block-vvfat.c

-- Heikki Lindholm

[-- Attachment #2: patch-block-vvfat_c --]
[-- Type: text/plain, Size: 486 bytes --]

--- 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	other threads:[~2006-04-22  7:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4449D762.50608@cs.helsinki.fi \
    --to=holindho@cs.helsinki.fi \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).