From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAX8Q-0007fB-DH for qemu-devel@nongnu.org; Tue, 16 May 2017 03:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAX8P-0005rg-IG for qemu-devel@nongnu.org; Tue, 16 May 2017 03:43:10 -0400 From: Gerd Hoffmann Date: Tue, 16 May 2017 09:42:55 +0200 Message-Id: <20170516074256.24731-1-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] block/win32: fix 'ret not initialized' warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Kevin Wolf , Max Reitz , Stefan Weil , "open list:raw" Signed-off-by: Gerd Hoffmann --- 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