aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-07-06 12:24:44 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2015-07-07 14:27:14 +0100
commitc2e0dbbfd7265eb9a7170ab195d8f9f8a1cbd1af (patch)
tree9a9e1b6988d8312f90288a6cfb1085cd5dc460b9 /block.c
parent7a63f3cdc44230109c91cdc0ee912c3cc7837141 (diff)
downloadqemu-arm-c2e0dbbfd7265eb9a7170ab195d8f9f8a1cbd1af.tar.gz
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>
Diffstat (limited to 'block.c')
-rw-r--r--block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c
index 7e130cc528..42eb8e3610 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