]> Git Repo - qemu.git/commitdiff
block/qapi: Clear err for further error
authorFam Zheng <[email protected]>
Tue, 22 Dec 2015 10:11:47 +0000 (18:11 +0800)
committerMax Reitz <[email protected]>
Thu, 7 Jan 2016 20:30:17 +0000 (21:30 +0100)
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 <[email protected]>
Message-id: 1450779107[email protected]
Reviewed-by: John Snow <[email protected]>
Signed-off-by: Max Reitz <[email protected]>
block/qapi.c

index fecac253de694f97b09f78a7bd6c677a6f2ccf11..58d3975001d2852eb08440ce8e1a8e04a6e0010e 100644 (file)
@@ -250,6 +250,7 @@ void bdrv_query_image_info(BlockDriverState *bs,
             g_free(backing_filename2);
             backing_filename2 = NULL;
             error_free(err);
+            err = NULL;
         }
 
         /* Always report the full_backing_filename if present, even if it's the
This page took 0.027587 seconds and 4 git commands to generate.