From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg90A-0002rJ-NH for qemu-devel@nongnu.org; Mon, 11 Jul 2011 01:25:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qg909-00006g-AI for qemu-devel@nongnu.org; Mon, 11 Jul 2011 01:25:50 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:38695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg909-00006W-3S for qemu-devel@nongnu.org; Mon, 11 Jul 2011 01:25:49 -0400 Received: by gwb19 with SMTP id 19so1678960gwb.4 for ; Sun, 10 Jul 2011 22:25:48 -0700 (PDT) From: Devin Nakamura Date: Mon, 11 Jul 2011 01:25:13 -0400 Message-Id: <004f3f00feb28f2d8f9f7c837e06a8fd414dfd73.1310361865.git.devin122@gmail.com> In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 2/2] qemu-io: Fix if scoping bug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Devin Nakamura Fix a bug caused by lack of braces in if statement Lack of braces means that if(count & 0x1ff) is never reached Conflicts: qemu-io.c Signed-off-by: Devin Nakamura --- qemu-io.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index e484f40..85cfe27 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -449,7 +449,7 @@ static int read_f(int argc, char **argv) return 0; } - if (!pflag) + if (!pflag) { if (offset & 0x1ff) { printf("offset %" PRId64 " is not sector aligned\n", offset); -- 1.7.6.rc1