[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PULL 04/21] block/qapi: Clear err for further error

From: Max Reitz
Subject: [Qemu-block] [PULL 04/21] block/qapi: Clear err for further error
Date: Thu, 7 Jan 2016 23:57:18 +0100

From: Fam Zheng <address@hidden>

Since a5002d5 (block/qapi: allow best-effort query) we don't return at
this error, however err must be cleared before passing to
bdrv_query_snapshot_info_list below, as required by error API.

Signed-off-by: Fam Zheng <address@hidden>
Message-id: address@hidden
Reviewed-by: John Snow <address@hidden>
Signed-off-by: Max Reitz <address@hidden>
 block/qapi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/qapi.c b/block/qapi.c
index fecac25..58d3975 100644
--- a/block/qapi.c
+++ b/block/qapi.c
@@ -250,6 +250,7 @@ void bdrv_query_image_info(BlockDriverState *bs,
             backing_filename2 = NULL;
+            err = NULL;
         /* Always report the full_backing_filename if present, even if it's the

reply via email to

[Prev in Thread] Current Thread [Next in Thread]