block: Initialize local_err in bdrv_append_temp_snapshot
PATCH 1/1 block: Initialize local_err in bdrv_append_temp_snapshot
Signed-off-by Fam Zheng <[email protected]>
--- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block.c +1 -1
@@ -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
Signature · 1 line
2.4.3
Stefan Hajnoczi
AppliedQuoted 5 lines · Fam Zheng
Signed-off-by Fam Zheng <[email protected]>--- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan