diff options
author | Fam Zheng <famz@redhat.com> | 2015-12-22 18:11:47 +0800 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2016-01-07 21:30:17 +0100 |
commit | 0fa296eb005240ec9e9bd7bef4be850f5048365a (patch) | |
tree | 5784a57a0fb022f4f59a6bcc5b32050186f7d5a3 /block/qapi.c | |
parent | fc27291dafbb5ae39dfc43f22cae867d442ac5ab (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/qapi.c')
-rw-r--r-- | block/qapi.c | 1 |
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 |