qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 2/2] qemu-io: Fix if scoping bug


From: Devin Nakamura
Subject: [Qemu-devel] [PATCH 2/2] qemu-io: Fix if scoping bug
Date: Mon, 11 Jul 2011 01:25:13 -0400

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 <address@hidden>
---
 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




reply via email to

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