From: Devin Nakamura Date: Mon, 11 Jul 2011 15:20:25 +0000 (-0400) Subject: qemu-io: Fix if scoping bug X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~5636^2~6^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5afc8b3de9a8a472a45d2b980632a15cb7f1e1c3;p=sdk%2Femulator%2Fqemu.git 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 --- diff --git a/qemu-io.c b/qemu-io.c index e3c825f..a553d0c 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);