aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-12-22 18:11:47 +0800
committerMax Reitz <mreitz@redhat.com>2016-01-07 21:30:17 +0100
commit0fa296eb005240ec9e9bd7bef4be850f5048365a (patch)
tree5784a57a0fb022f4f59a6bcc5b32050186f7d5a3 /block
parentfc27291dafbb5ae39dfc43f22cae867d442ac5ab (diff)
block/qapi: Clear err for further error
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 <famz@redhat.com> Message-id: 1450779107-26765-1-git-send-email-famz@redhat.com Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/qapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qapi.c b/block/qapi.c
index fecac253de..58d3975001 100644
--- a/block/qapi.c
+++ b/block/qapi.c
@@ -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