Received: from eggs.gnu.org ([2001:4830:134:3::10]:48455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHJVQ-0006lH-R7 for qemu-devel@nongnu.org; Thu, 07 Jan 2016 17:58:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHJVM-0003cq-PW for qemu-devel@nongnu.org; Thu, 07 Jan 2016 17:58:08 -0500 From: Max Reitz Date: Thu, 7 Jan 2016 23:57:18 +0100 Message-Id: <1452207455-10806-5-git-send-email-mreitz@redhat.com> In-Reply-To: <1452207455-10806-1-git-send-email-mreitz@redhat.com> References: <1452207455-10806-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PULL 04/21] block/qapi: Clear err for further error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: Fam Zheng , qemu-devel@nongnu.org, Max Reitz From: Fam Zheng 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 Message-id: 1450779107-26765-1-git-send-email-famz@redhat.com Reviewed-by: John Snow Signed-off-by: Max Reitz --- 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, 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 -- 2.6.4