From 5afc8b3de9a8a472a45d2b980632a15cb7f1e1c3 Mon Sep 17 00:00:00 2001 From: Devin Nakamura Date: Mon, 11 Jul 2011 11:20:25 -0400 Subject: qemu-io: Fix if scoping bug Fix a bug caused by lack of braces in if statement Lack of braces means that if(count & 0x1ff) is never reached Signed-off-by: Devin Nakamura Signed-off-by: Kevin Wolf --- qemu-io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qemu-io.c') diff --git a/qemu-io.c b/qemu-io.c index e3c825f7e9..a553d0c98d 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); @@ -460,6 +460,7 @@ static int read_f(int argc, char **argv) count); return 0; } + } buf = qemu_io_alloc(count, 0xab); -- cgit v1.2.3