[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] block/win32: fix 'ret not initialized' warning
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH] block/win32: fix 'ret not initialized' warning |
Date: |
Tue, 16 May 2017 09:42:55 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
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;
}
--
2.9.3
- [Qemu-devel] [PATCH] block/win32: fix 'ret not initialized' warning,
Gerd Hoffmann <=