diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-06-14 11:29:32 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-06-16 15:19:55 +0200 |
commit | 604e86136266d104210a74be4c82643300c74e69 (patch) | |
tree | 07c3a5df88793b8e13768331eb065da74d20f047 /qemu-img.c | |
parent | 9e19036e5a3c5abfe57984ca98ab064acfca83a3 (diff) | |
download | qemu-604e86136266d104210a74be4c82643300c74e69.tar.gz qemu-604e86136266d104210a74be4c82643300c74e69.tar.bz2 qemu-604e86136266d104210a74be4c82643300c74e69.zip |
qemu-img bench: Fix uninitialised writethrough mode
If no -t option is specified, bool writethrough stayed uninitialised.
Initialise it as false, which makes cache=writeback the default cache
mode.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c index 251386b49d..14e2661a5c 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -3570,7 +3570,7 @@ static int img_bench(int argc, char **argv) BlockBackend *blk = NULL; BenchData data = {}; int flags = 0; - bool writethrough; + bool writethrough = false; struct timeval t1, t2; int i; |