block: Initialize local_err in bdrv_append_temp_snapshot

Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1436156684-16526-1-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit c2e0dbbfd7)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
Fam Zheng 2015-07-06 12:24:44 +08:00 committed by Michael Roth
parent 2060efae47
commit c5c71e87aa
1 changed files with 1 additions and 1 deletions

View File

@ -1380,7 +1380,7 @@ int bdrv_append_temp_snapshot(BlockDriverState *bs, int flags, Error **errp)
QemuOpts *opts = NULL; QemuOpts *opts = NULL;
QDict *snapshot_options; QDict *snapshot_options;
BlockDriverState *bs_snapshot; BlockDriverState *bs_snapshot;
Error *local_err; Error *local_err = NULL;
int ret; int ret;
/* if snapshot, we create a temporary backing file and open it /* if snapshot, we create a temporary backing file and open it