From patchwork Tue Jul 7 13:29:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 492256 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 11C751402C3 for ; Tue, 7 Jul 2015 23:32:42 +1000 (AEST) Received: from localhost ([::1]:57639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCSzC-00056a-UR for incoming@patchwork.ozlabs.org; Tue, 07 Jul 2015 09:32:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCSwi-0006Ej-UB for qemu-devel@nongnu.org; Tue, 07 Jul 2015 09:30:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCSwi-0006tg-4X for qemu-devel@nongnu.org; Tue, 07 Jul 2015 09:30:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCSwh-0006t0-WC; Tue, 07 Jul 2015 09:30:00 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id A58358F26D; Tue, 7 Jul 2015 13:29:59 +0000 (UTC) Received: from localhost (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t67DTwG3024073; Tue, 7 Jul 2015 09:29:59 -0400 From: Stefan Hajnoczi To: Date: Tue, 7 Jul 2015 14:29:48 +0100 Message-Id: <1436275791-535-4-git-send-email-stefanha@redhat.com> In-Reply-To: <1436275791-535-1-git-send-email-stefanha@redhat.com> References: <1436275791-535-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Kevin Wolf , Peter Maydell , Fam Zheng , qemu-stable@nongnu.org, Stefan Hajnoczi Subject: [Qemu-devel] [PULL for-2.4 v2 3/6] block: Initialize local_err in bdrv_append_temp_snapshot X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Fam Zheng Cc: qemu-stable@nongnu.org Signed-off-by: Fam Zheng Message-id: 1436156684-16526-1-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index 7e130cc..42eb8e3 100644 --- a/block.c +++ b/block.c @@ -1271,7 +1271,7 @@ int bdrv_append_temp_snapshot(BlockDriverState *bs, int flags, Error **errp) QemuOpts *opts = NULL; QDict *snapshot_options; BlockDriverState *bs_snapshot; - Error *local_err; + Error *local_err = NULL; int ret; /* if snapshot, we create a temporary backing file and open it