projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43642b3
)
qemu-io: Fix if scoping bug
author
Devin Nakamura
<devin122@gmail.com>
Mon, 11 Jul 2011 15:20:25 +0000
(11:20 -0400)
committer
Kevin Wolf
<kwolf@redhat.com>
Mon, 18 Jul 2011 14:06:27 +0000
(16:06 +0200)
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 <devin122@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io.c
patch
|
blob
|
history
diff --git
a/qemu-io.c
b/qemu-io.c
index e3c825f7e9c86dbef11aa865c959e34abb17048f..a553d0c98dca4ee3960632e01dd220bbc5e9e3c2 100644
(file)
--- 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);