[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH] block: Initialize local_err in bdrv_append_temp_sna
From: |
Fam Zheng |
Subject: |
[Qemu-block] [PATCH] block: Initialize local_err in bdrv_append_temp_snapshot |
Date: |
Mon, 6 Jul 2015 12:24:44 +0800 |
Cc: address@hidden
Signed-off-by: Fam Zheng <address@hidden>
---
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
--
2.4.3
- [Qemu-block] [PATCH] block: Initialize local_err in bdrv_append_temp_snapshot,
Fam Zheng <=