From cdece0467c00007cf8e3f4b3c3f0b13bf2c4fea9 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 16 May 2017 09:42:55 +0200 Subject: [PATCH] block/win32: fix 'ret not initialized' warning Signed-off-by: Gerd Hoffmann Reviewed-by: Stefan Weil Reviewed-by: Fam Zheng Message-id: 20170516074256.24731-1-kraxel@redhat.com Signed-off-by: Stefan Hajnoczi --- block/file-win32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/file-win32.c b/block/file-win32.c index 1a35dbabf2..8f14f0bdcd 100644 --- a/block/file-win32.c +++ b/block/file-win32.c @@ -346,6 +346,7 @@ static int raw_open(BlockDriverState *bs, QDict *options, int flags, if (qdict_get_try_bool(options, "locking", false)) { error_setg(errp, "locking=on is not supported on Windows"); + ret = -EINVAL; goto fail; }